@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | if ($this->isPreviewAllowed()) { |
| 25 | 25 | $pages = Page::all(); |
| 26 | - } else { |
|
| 26 | + }else { |
|
| 27 | 27 | $pages = Page::getAllPublished(); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | if ($this->isPreviewAllowed()) { |
| 36 | 36 | $page = Page::findBySlug($request->slug); |
| 37 | - } else { |
|
| 37 | + }else { |
|
| 38 | 38 | $page = Page::findPublishedBySlug($request->slug); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -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 | /** |
@@ -26,16 +26,16 @@ |
||
| 26 | 26 | |
| 27 | 27 | $this->createUser($firstname, $lastname, $email, $password, ['admin']); |
| 28 | 28 | |
| 29 | - $this->info($firstname.' '.$lastname. ' succesfully added as admin user.'); |
|
| 29 | + $this->info($firstname.' '.$lastname.' succesfully added as admin user.'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | private function settingPermissionsAndRoles() |
| 33 | 33 | { |
| 34 | - AuthorizationDefaults::permissions()->each(function ($permissionName) { |
|
| 34 | + AuthorizationDefaults::permissions()->each(function($permissionName) { |
|
| 35 | 35 | Artisan::call('chief:permission', ['name' => $permissionName]); |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - AuthorizationDefaults::roles()->each(function ($defaultPermissions, $roleName) { |
|
| 38 | + AuthorizationDefaults::roles()->each(function($defaultPermissions, $roleName) { |
|
| 39 | 39 | Artisan::call('chief:role', ['name' => $roleName, '--permissions' => implode(',', $defaultPermissions)]); |
| 40 | 40 | }); |
| 41 | 41 | |
@@ -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 | }); |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | public function rules() |
| 26 | 26 | { |
| 27 | 27 | return [ |
| 28 | - 'trans.*.title' => 'required|unique:page_translations,title,'. $this->id . ',page_id|max:200', |
|
| 29 | - 'trans.*.slug' => 'required|unique:page_translations,slug,' . $this->id . ',page_id|distinct', |
|
| 28 | + 'trans.*.title' => 'required|unique:page_translations,title,'.$this->id.',page_id|max:200', |
|
| 29 | + 'trans.*.slug' => 'required|unique:page_translations,slug,'.$this->id.',page_id|distinct', |
|
| 30 | 30 | 'trans.*.content' => 'required|max:1500', |
| 31 | 31 | 'trans.*.short' => 'max:700', |
| 32 | 32 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function index() |
| 13 | 13 | { |
| 14 | 14 | $pages = Page::sequence()->get(); |
| 15 | - $pages->each(function ($page) { |
|
| 15 | + $pages->each(function($page) { |
|
| 16 | 16 | $page->groupedlines = $this->groupLinesByKey($page); |
| 17 | 17 | }); |
| 18 | 18 | return view('squanto::index', compact('pages')); |
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | public function handle($request, Closure $next) |
| 20 | 20 | { |
| 21 | 21 | // Verifies a valid signature and still outside expiration period |
| 22 | - if (! $request->hasValidSignature()) { |
|
| 22 | + if (!$request->hasValidSignature()) { |
|
| 23 | 23 | return redirect()->route('invite.expired'); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - if (! $invitation = Invitation::findByToken($request->token)) { |
|
| 26 | + if (!$invitation = Invitation::findByToken($request->token)) { |
|
| 27 | 27 | return redirect()->route('invite.expired'); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -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 | }); |