@@ -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 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $role->givePermissionTo($request->permission_names); |
43 | 43 | |
44 | 44 | return redirect()->route('chief.back.roles.index') |
45 | - ->with('messages.success', 'Rol '. $role->name.' is toegevoegd.'); |
|
45 | + ->with('messages.success', 'Rol '.$role->name.' is toegevoegd.'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | public function edit($id) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $role->syncPermissions($request->permission_names); |
72 | 72 | |
73 | 73 | return redirect()->route('chief.back.roles.index') |
74 | - ->with('messages.success', 'Rol '. $role->name.' is aangepast.'); |
|
74 | + ->with('messages.success', 'Rol '.$role->name.' is aangepast.'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | public function destroy($id) |
@@ -82,6 +82,6 @@ discard block |
||
82 | 82 | $role->delete(); |
83 | 83 | |
84 | 84 | return redirect()->route('chief.back.roles.index') |
85 | - ->with('messages.success', 'Rol '. $role->name.' is verwijderd.'); |
|
85 | + ->with('messages.success', 'Rol '.$role->name.' is verwijderd.'); |
|
86 | 86 | } |
87 | 87 | } |
@@ -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')); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $page = app(CreatePage::class)->handle($request->trans); |
50 | 50 | |
51 | - return redirect()->route('chief.back.pages.index')->with('messages.success', $page->title .' is aangemaakt'); |
|
51 | + return redirect()->route('chief.back.pages.index')->with('messages.success', $page->title.' is aangemaakt'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $page = app(UpdatePage::class)->handle($id, $request->trans, $request->relations); |
81 | 81 | |
82 | - return redirect()->route('chief.back.pages.index')->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i> "'.$page->title .'" werd aangepast'); |
|
82 | + return redirect()->route('chief.back.pages.index')->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i> "'.$page->title.'" werd aangepast'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | |
110 | 110 | public function publish(Request $request) |
111 | 111 | { |
112 | - $page = Page::findOrFail($request->get('id')); |
|
113 | - $published = true === !$request->checkboxStatus; // string comp. since bool is passed as string |
|
112 | + $page = Page::findOrFail($request->get('id')); |
|
113 | + $published = true === !$request->checkboxStatus; // string comp. since bool is passed as string |
|
114 | 114 | |
115 | 115 | ($published) ? $page->publish() : $page->draft(); |
116 | 116 |
@@ -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 | }); |