| @@ -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 |          if (config('localizer.homeRoute')) { | 
| 12 | 12 |              Route::get('/set/{locale}/home', 'LocalizerController@setHome')->name('setLocaleHome'); | 
| @@ -28,7 +28,6 @@ | ||
| 28 | 28 | /** | 
| 29 | 29 | * This function checks if user is logged in, and loads the prefered language. | 
| 30 | 30 | * | 
| 31 | - * @param string $lang | |
| 32 | 31 | **/ | 
| 33 | 32 | public function setLang($request) | 
| 34 | 33 |      { | 
| @@ -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(config('localizer.default_lang')); | 
| 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 | } | 
| @@ -29,7 +29,7 @@ | ||
| 29 | 29 |          $router->aliasMiddleware('localizer', config('localizer.middleware')); | 
| 30 | 30 | $this->app->register(IdentifyServiceProvider::class); | 
| 31 | 31 | |
| 32 | -        if (! class_exists('AddLocaleColumn')) { | |
| 32 | +        if (!class_exists('AddLocaleColumn')) { | |
| 33 | 33 | $this->loadMigrationsFrom(__DIR__.'/Migrations', 'localizer'); | 
| 34 | 34 | |
| 35 | 35 | $this->publishes([ |