@@ -26,7 +26,7 @@ |
||
26 | 26 | public function handle(): void |
27 | 27 | { |
28 | 28 | // CSV should consist of: locale - redirect url - target -url |
29 | - $this->loop($this->argument('file'), function ($row) { |
|
29 | + $this->loop($this->argument('file'), function($row) { |
|
30 | 30 | try { |
31 | 31 | $this->addRedirect->handle($row[0], $row[1], $row[2]); |
32 | 32 | } catch (UrlRecordNotFound $e) { |
@@ -15,12 +15,12 @@ |
||
15 | 15 | */ |
16 | 16 | public function handle() |
17 | 17 | { |
18 | - if (app()->environment() != 'local' && ! $this->option('force')) { |
|
18 | + if (app()->environment() != 'local' && !$this->option('force')) { |
|
19 | 19 | throw new \Exception('You can only run the seeder in the local environment since this will inject a ton of default data'); |
20 | 20 | } |
21 | 21 | |
22 | 22 | if (app()->environment() != 'local' && $this->option('force')) { |
23 | - if (! $this->confirm('You are about to inject default seeding data in the '.app()->environment().' database! Are you sure?')) { |
|
23 | + if (!$this->confirm('You are about to inject default seeding data in the '.app()->environment().' database! Are you sure?')) { |
|
24 | 24 | $this->info('You are welcome. I have just saved your job.'); |
25 | 25 | |
26 | 26 | return; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $user->enabled = true; |
18 | 18 | $user->save(); |
19 | 19 | |
20 | - $user->assignRole((array) $roles); |
|
20 | + $user->assignRole((array)$roles); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $password = $passwordConfirm = null; |
31 | 31 | $tries = 0; |
32 | 32 | |
33 | - while (! $password || strlen($password) < 4 || $password != $passwordConfirm) { |
|
33 | + while (!$password || strlen($password) < 4 || $password != $passwordConfirm) { |
|
34 | 34 | if ($tries > 2) { |
35 | 35 | throw new \Exception('Aborting. Too many failed attempts to set password'); |
36 | 36 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | $this->bootEssentials(); |
95 | 95 | |
96 | - if (! $this->app->make(AdminEnvironment::class)->check(request())) { |
|
96 | + if (!$this->app->make(AdminEnvironment::class)->check(request())) { |
|
97 | 97 | return; |
98 | 98 | } |
99 | 99 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | 'role' => Role::class, |
160 | 160 | ]; |
161 | 161 | |
162 | - Auth::provider('chief-eloquent', function ($app, array $config) { |
|
162 | + Auth::provider('chief-eloquent', function($app, array $config) { |
|
163 | 163 | return new ChiefUserProvider($app['hash'], $config['model']); |
164 | 164 | }); |
165 | 165 | } |
@@ -227,11 +227,11 @@ discard block |
||
227 | 227 | (new ConsoleServiceProvider($this->app))->register(); |
228 | 228 | } |
229 | 229 | |
230 | - $this->app->singleton(Registry::class, function () { |
|
230 | + $this->app->singleton(Registry::class, function() { |
|
231 | 231 | return new Registry([]); |
232 | 232 | }); |
233 | 233 | |
234 | - $this->app->singleton(Settings::class, function () { |
|
234 | + $this->app->singleton(Settings::class, function() { |
|
235 | 235 | return new Settings; |
236 | 236 | }); |
237 | 237 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | if ($this->app->make(AdminEnvironment::class)->check(request())) { |
245 | 245 | $this->app->when(SettingsController::class) |
246 | 246 | ->needs(SettingFields::class) |
247 | - ->give(function () { |
|
247 | + ->give(function() { |
|
248 | 248 | return new SettingFields(new Settings); |
249 | 249 | }); |
250 | 250 | Relation::morphMap(['fragmentmodel' => FragmentModel::class]); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | Relation::morphMap(['menuitem' => MenuItem::class]); |
253 | 253 | |
254 | 254 | // Global chief nav singleton |
255 | - $this->app->singleton(Nav::class, function () { |
|
255 | + $this->app->singleton(Nav::class, function() { |
|
256 | 256 | return new Nav; |
257 | 257 | }); |
258 | 258 |