Completed
Push — master ( 107a25...d938ff )
by Song
03:20
created
src/Grid/Filter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     {
208 208
         $inputs = array_dot(Input::all());
209 209
 
210
-        $inputs = array_filter($inputs, function ($input) {
210
+        $inputs = array_filter($inputs, function($input) {
211 211
             return $input !== '' && !is_null($input);
212 212
         });
213 213
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             $conditions[] = $filter->condition($params);
232 232
         }
233 233
 
234
-        return tap(array_filter($conditions), function ($conditions) {
234
+        return tap(array_filter($conditions), function($conditions) {
235 235
             $this->searching = !empty($conditions);
236 236
         });
237 237
     }
@@ -247,9 +247,9 @@  discard block
 block discarded – undo
247 247
             return $inputs;
248 248
         }
249 249
 
250
-        $inputs = collect($inputs)->filter(function ($input, $key) {
250
+        $inputs = collect($inputs)->filter(function($input, $key) {
251 251
             return starts_with($key, "{$this->name}_");
252
-        })->mapWithKeys(function ($val, $key) {
252
+        })->mapWithKeys(function($val, $key) {
253 253
             $key = str_replace("{$this->name}_", '', $key);
254 254
 
255 255
             return [$key => $val];
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function scope($key, $label = '')
301 301
     {
302
-        return tap(new Scope($key, $label), function (Scope $scope) {
302
+        return tap(new Scope($key, $label), function(Scope $scope) {
303 303
             return $this->scopes->push($scope);
304 304
         });
305 305
     }
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     {
324 324
         $key = request(Scope::QUERY_NAME);
325 325
 
326
-        return $this->scopes->first(function ($scope) use ($key) {
326
+        return $this->scopes->first(function($scope) use ($key) {
327 327
             return $scope->key == $key;
328 328
         });
329 329
     }
Please login to merge, or discard this patch.
src/Grid/Filter/Scope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function condition()
57 57
     {
58
-        return $this->queries->map(function ($query) {
58
+        return $this->queries->map(function($query) {
59 59
             return [$query['method'] => $query['arguments']];
60 60
         })->toArray();
61 61
     }
Please login to merge, or discard this patch.