@@ -82,7 +82,6 @@ |
||
82 | 82 | /** |
83 | 83 | * Returns the current language name. |
84 | 84 | * |
85 | - * @param string $ucfirst |
|
86 | 85 | * |
87 | 86 | * @return string |
88 | 87 | */ |
@@ -9,6 +9,9 @@ |
||
9 | 9 | |
10 | 10 | class LocalizerController extends Controller |
11 | 11 | { |
12 | + /** |
|
13 | + * @param Request $request |
|
14 | + */ |
|
12 | 15 | private function setLocale($locale, $request) |
13 | 16 | { |
14 | 17 | if (!in_array($locale, array_keys(Localizer::allowedLanguages()))) { |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::table('users', function ($table) { |
|
15 | + Schema::table('users', function($table) { |
|
16 | 16 | $table->string('locale')->default('en'); |
17 | 17 | }); |
18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function down() |
26 | 26 | { |
27 | - Schema::table('users', function ($table) { |
|
27 | + Schema::table('users', function($table) { |
|
28 | 28 | $table->dropColumn('locale'); |
29 | 29 | }); |
30 | 30 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | 'as' => 'localizer::', |
7 | 7 | 'prefix' => config('localizer.prefix'), |
8 | 8 | 'namespace' => 'Aitor24\Localizer\Controllers', |
9 | - ], function () { |
|
9 | + ], function() { |
|
10 | 10 | Route::get('/set/{locale}/', 'LocalizerController@set')->name('setLocale'); |
11 | 11 | Route::get('/set/{locale}/home', 'LocalizerController@setHome')->name('setLocaleHome'); |
12 | 12 | }); |