Completed
Pull Request — ft/package (#25)
by Philippe
26:38 queued 12:34
created
app/Console/RefreshDatabase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
app/Http/Requests/PageUpdateRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/TranslationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
app/Http/Controllers/Back/PagesController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Middleware/ValidateInvite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Middleware/OptimizeImages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.