Completed
Pull Request — master (#3478)
by
unknown
04:03 queued 01:42
created
src/Grid/Filter/Presenter/Select.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             throw new \InvalidArgumentException("[$model] must be a valid model class");
120 120
         }
121 121
 
122
-        $this->options = function ($value) use ($model, $idField, $textField) {
122
+        $this->options = function($value) use ($model, $idField, $textField) {
123 123
             if (empty($value)) {
124 124
                 return [];
125 125
             }
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
                 $resources[] = $value;
137 137
             }
138 138
 
139
-            if (in_array(SoftDeletes::class,class_uses_deep($model))) {
140
-                $model = $model::withTrashed()->whereIn($idField,$resources);
139
+            if (in_array(SoftDeletes::class, class_uses_deep($model))) {
140
+                $model = $model::withTrashed()->whereIn($idField, $resources);
141 141
             } else {
142
-                $model = $model::whereIn($idField,$resources);
142
+                $model = $model::whereIn($idField, $resources);
143 143
             }
144 144
 
145 145
             return $model->pluck($textField, $idField)->toArray();
Please login to merge, or discard this patch.