Passed
Push — ft/urls ( cdb8a8...010a18 )
by Ben
26:40
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/Fields/Fields.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function validate(array $data)
48 48
     {
49 49
         foreach($this->fields as $field){
50
-             $field->validator($data)->validate();
50
+                $field->validator($data)->validate();
51 51
         }
52 52
     }
53 53
 
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
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
     public static function getByModel(Model $model)
64 64
     {
65 65
         return static::where('model_type', $model->getMorphClass())
66
-                     ->where('model_id', $model->id)
67
-                     ->get();
66
+                        ->where('model_id', $model->id)
67
+                        ->get();
68 68
     }
69 69
 
70 70
     public function replaceAndRedirect(array $values): UrlRecord
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
         if($ignoredModel){
118 118
             $builder->whereNotIn('id', function($query) use($ignoredModel){
119 119
                 $query->select('id')
120
-                      ->from('chief_urls')
121
-                      ->where('model_type', '=', $ignoredModel->getMorphClass())
122
-                      ->where('model_id', '=', $ignoredModel->id);
120
+                        ->from('chief_urls')
121
+                        ->where('model_type', '=', $ignoredModel->getMorphClass())
122
+                        ->where('model_id', '=', $ignoredModel->id);
123 123
             });
124 124
         }
125 125
 
Please login to merge, or discard this patch.