Passed
Push — ft/appmove ( db87fd...97613e )
by Philippe
45:05 queued 26:47
created
src/Concerns/Morphable/Morphable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function scopeMorphable($query, string $morphkey = null)
33 33
     {
34 34
         return $query->withoutGlobalScope(static::globalMorphableScope())
35
-                     ->where('morph_key', '=', $morphkey);
35
+                        ->where('morph_key', '=', $morphkey);
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/Relations/Relation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     {
104 104
         $relations = static::where(function ($query) use ($type, $id) {
105 105
             return $query->where('parent_type', $type)
106
-                         ->where('parent_id', $id);
106
+                            ->where('parent_id', $id);
107 107
         })->orWhere(function ($query) use ($type, $id) {
108 108
             return $query->where('child_type', $type)
109 109
                 ->where('child_id', $id);
Please login to merge, or discard this patch.
src/Pages/PageManager.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
         return parent::fields()->add(
88 88
             $this->pageBuilderField(),
89 89
             InputField::make('title')->translatable($this->model->availableLocales())
90
-                                     ->validation('required-fallback-locale|max:200', [], [
91
-                                         'trans.'.config('app.fallback_locale', 'nl').'.title' => 'title',
92
-                                     ])
93
-                                     ->label('De titel van je '.$this->model->labelSingular ?? 'pagina')
94
-                                     ->description('Dit is de titel die zal worden getoond in de overzichten en modules.'),
90
+                                        ->validation('required-fallback-locale|max:200', [], [
91
+                                            'trans.'.config('app.fallback_locale', 'nl').'.title' => 'title',
92
+                                        ])
93
+                                        ->label('De titel van je '.$this->model->labelSingular ?? 'pagina')
94
+                                        ->description('Dit is de titel die zal worden getoond in de overzichten en modules.'),
95 95
             InputField::make('seo_title')
96 96
                 ->translatable($this->model->availableLocales())
97 97
                 ->label('Zoekmachine titel'),
Please login to merge, or discard this patch.
src/Urls/UrlRecord.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     public static function getByModel(Model $model)
66 66
     {
67 67
         return static::where('model_type', $model->getMorphClass())
68
-                     ->where('model_id', $model->id)
69
-                     ->get();
68
+                        ->where('model_id', $model->id)
69
+                        ->get();
70 70
     }
71 71
 
72 72
     public static function findRecentRedirect(Model $model, string $locale): ?self
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
         if ($ignoredModel) {
135 135
             $builder->whereNotIn('id', function ($query) use ($ignoredModel) {
136 136
                 $query->select('id')
137
-                      ->from('chief_urls')
138
-                      ->where('model_type', '=', $ignoredModel->getMorphClass())
139
-                      ->where('model_id', '=', $ignoredModel->id);
137
+                        ->from('chief_urls')
138
+                        ->where('model_type', '=', $ignoredModel->getMorphClass())
139
+                        ->where('model_id', '=', $ignoredModel->id);
140 140
             });
141 141
         }
142 142
 
Please login to merge, or discard this patch.
src/ChiefApp/Http/Controllers/Back/ManagersController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $manager->guard('edit');
58 58
 
59 59
         return redirect()->to($manager->route('edit'))
60
-                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is toegevoegd');
60
+                            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is toegevoegd');
61 61
     }
62 62
 
63 63
     public function edit(string $key, $id)
Please login to merge, or discard this patch.
src/ChiefApp/Http/Controllers/Back/Authorization/RoleController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/ChiefApp/Providers/ChiefServiceProvider.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,8 +188,8 @@
 block discarded – undo
188 188
             Route::get('{slug?}', function ($slug = '/') use ($routeName) {
189 189
                 return ChiefResponse::fromSlug($slug);
190 190
             })->name($routeName)
191
-              ->where('slug', '(.*)?')
192
-              ->middleware('web');
191
+                ->where('slug', '(.*)?')
192
+                ->middleware('web');
193 193
         });
194 194
     }
195 195
 
Please login to merge, or discard this patch.
src/ChiefApp/Exceptions/Handler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.