@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | Schema::defaultStringLength(191); |
25 | 25 | |
26 | - $this->loadRoutesFrom(__DIR__ . '/../../src/Demo/Http/routes/demoRoutes.php'); |
|
27 | - $this->loadViewsFrom(__DIR__ . '/../../src/Demo/views', 'demo'); |
|
26 | + $this->loadRoutesFrom(__DIR__.'/../../src/Demo/Http/routes/demoRoutes.php'); |
|
27 | + $this->loadViewsFrom(__DIR__.'/../../src/Demo/views', 'demo'); |
|
28 | 28 | } |
29 | 29 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | Permission::findOrCreate($permission, 'chief'); |
40 | 40 | } |
41 | 41 | |
42 | - $this->info('Permissions ' . implode(', ', $permissions) . ' created.'); |
|
42 | + $this->info('Permissions '.implode(', ', $permissions).' created.'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | foreach ($roleNames as $roleName) { |
57 | 57 | if ($role = Role::where('name', trim($roleName))->first()) { |
58 | 58 | $role->syncPermissions($permissions); |
59 | - $this->info('Role ' . $roleName . ' assigned the given permissions.'); |
|
60 | - } else { |
|
61 | - $this->warn('Role not found by name ' . $roleName . '!'); |
|
59 | + $this->info('Role '.$roleName.' assigned the given permissions.'); |
|
60 | + }else { |
|
61 | + $this->warn('Role not found by name '.$roleName.'!'); |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | // Generate all permissions if only scope is passed |
43 | 43 | if (false === strpos($permissionName, '-')) { |
44 | 44 | $cleanPermissionNames = array_merge($cleanPermissionNames, Permission::generate($permissionName)); |
45 | - } else { |
|
45 | + }else { |
|
46 | 46 | // Trim the value |
47 | 47 | $cleanPermissionNames[] = $permissionName; |
48 | 48 | } |
@@ -55,6 +55,6 @@ discard block |
||
55 | 55 | $role->givePermissionTo($cleanPermissionName); |
56 | 56 | } |
57 | 57 | |
58 | - $this->info('Role ' . $role->name . ' was assigned the permissions: ' . implode(',', $cleanPermissionNames)); |
|
58 | + $this->info('Role '.$role->name.' was assigned the permissions: '.implode(',', $cleanPermissionNames)); |
|
59 | 59 | } |
60 | 60 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $this->registerPolicies(); |
19 | 19 | |
20 | - Auth::provider('chief-eloquent', function ($app, array $config) { |
|
20 | + Auth::provider('chief-eloquent', function($app, array $config) { |
|
21 | 21 | return new ChiefUserProvider($app['hash'], $config['model']); |
22 | 22 | }); |
23 | 23 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | protected function unauthorized($request, AuthorizationException $exception) |
62 | 62 | { |
63 | 63 | return redirect()->route('chief.back.dashboard') |
64 | - ->with('messages.error', 'Oeps. Het lijkt erop dat je geen toegang hebt tot dit deel van chief. Vraag even de beheerder voor meer info.'); |
|
64 | + ->with('messages.error', 'Oeps. Het lijkt erop dat je geen toegang hebt tot dit deel van chief. Vraag even de beheerder voor meer info.'); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | if ($this->option('force')) { |
34 | 34 | $this->call('migrate:fresh', ['--force' => true]); |
35 | - } else { |
|
35 | + }else { |
|
36 | 36 | $this->call('migrate:fresh'); |
37 | 37 | } |
38 | 38 | |
@@ -48,11 +48,11 @@ discard block |
||
48 | 48 | |
49 | 49 | private function settingPermissionsAndRoles() |
50 | 50 | { |
51 | - AuthorizationDefaults::permissions()->each(function ($permissionName) { |
|
51 | + AuthorizationDefaults::permissions()->each(function($permissionName) { |
|
52 | 52 | Artisan::call('chief:permission', ['name' => $permissionName]); |
53 | 53 | }); |
54 | 54 | |
55 | - AuthorizationDefaults::roles()->each(function ($defaultPermissions, $roleName) { |
|
55 | + AuthorizationDefaults::roles()->each(function($defaultPermissions, $roleName) { |
|
56 | 56 | Artisan::call('chief:role', ['name' => $roleName, '--permissions' => implode(',', $defaultPermissions)]); |
57 | 57 | }); |
58 | 58 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ['Json', 'Voorhees', '[email protected]', $password], |
78 | 78 | ]); |
79 | 79 | |
80 | - $admins->each(function ($admin) { |
|
80 | + $admins->each(function($admin) { |
|
81 | 81 | $this->createUser($admin[0], $admin[1], $admin[2], $admin[3], 'developer'); |
82 | 82 | $this->info('Added '.$admin[0].' as developer role with your provided password.'); |
83 | 83 | }); |
@@ -12,12 +12,12 @@ |
||
12 | 12 | { |
13 | 13 | $optimizerChain = app(OptimizerChain::class); |
14 | 14 | |
15 | - collect($request->allFiles())->each(function ($file) use ($optimizerChain) { |
|
15 | + collect($request->allFiles())->each(function($file) use ($optimizerChain) { |
|
16 | 16 | if (is_array($file)) { |
17 | - collect($file)->each(function ($media) use ($optimizerChain) { |
|
17 | + collect($file)->each(function($media) use ($optimizerChain) { |
|
18 | 18 | $optimizerChain->optimize($media->getPathname()); |
19 | 19 | }); |
20 | - } else { |
|
20 | + }else { |
|
21 | 21 | $optimizerChain->optimize($file->getPathname()); |
22 | 22 | } |
23 | 23 | }); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | return $value; |
13 | 13 | } |
14 | 14 | |
15 | - $value = preg_replace_callback(static::$pattern, function ($matches) { |
|
15 | + $value = preg_replace_callback(static::$pattern, function($matches) { |
|
16 | 16 | |
17 | 17 | // First entry of matches contains our full captured group, which we want to replace. |
18 | 18 | // Second entry is the text itself, without the brackets |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function apply($value = null): Closure |
17 | 17 | { |
18 | - return $this->query && $this->query instanceof Closure ? $this->query : function ($query) { |
|
18 | + return $this->query && $this->query instanceof Closure ? $this->query : function($query) { |
|
19 | 19 | return $query; |
20 | 20 | }; |
21 | 21 | } |