Passed
Push — master ( c1e0d4...ba393a )
by La Teva Web
04:30
created
src/QueryUpdater.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         return [];
35 35
     }
36 36
 
37
-    public static function for(Model $model, $request = null): self
37
+    public static function for (Model $model, $request = null): self
38 38
     {
39 39
         return new static($model, $request ?? request());
40 40
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $fields = $this->composeFields($fields);
45 45
 
46
-        $fields->each(function ($field) {
46
+        $fields->each(function($field) {
47 47
             if ($this->fieldExists($field->getName()) && $this->allowedField($field->getName())) {
48 48
                 $this->model->{$field->getName()} = $field->getValue();
49 49
             }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         return collect($fields)
78 78
             ->flatten()
79
-            ->map(function ($field) {
79
+            ->map(function($field) {
80 80
                 if (empty($field)) {
81 81
                     return false;
82 82
                 } else {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                     return $field;
94 94
                 }
95 95
             })
96
-            ->filter(function ($field) {
96
+            ->filter(function($field) {
97 97
                 return $field instanceof AbstractFilter;
98 98
             });
99 99
     }
Please login to merge, or discard this patch.