Skip to content

Commit 8dcda32

Browse files
committed
Refactor translation class.
1 parent fd29f93 commit 8dcda32

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/Components/Translations.php

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,15 @@
22

33
namespace Modular\Modular\Components;
44

5+
use Closure;
6+
use Illuminate\Contracts\View\View;
57
use Illuminate\Support\Arr;
68
use Illuminate\Support\Facades\File;
79
use Illuminate\View\Component;
810

911
class Translations extends Component
1012
{
11-
/**
12-
* Create a new component instance.
13-
*
14-
* @return void
15-
*/
16-
public function __construct()
17-
{
18-
//
19-
}
20-
21-
/**
22-
* Get the view / contents that represent the component.
23-
*
24-
* @return \Illuminate\Contracts\View\View|\Closure|string
25-
*/
26-
public function render()
13+
public function render(): View|Closure|string
2714
{
2815
$locale = app()->getLocale();
2916

0 commit comments

Comments
 (0)