Completed
Push — master ( ede445...5bd17e )
by Song
02:27
created
src/Grid/Filter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
      */
287 287
     public function removeFilterByID($id)
288 288
     {
289
-        $this->filters = array_filter($this->filters, function (AbstractFilter $filter) use ($id) {
289
+        $this->filters = array_filter($this->filters, function(AbstractFilter $filter) use ($id) {
290 290
             return $filter->getId() != $id;
291 291
         });
292 292
     }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     {
301 301
         $inputs = Arr::dot(Input::all());
302 302
 
303
-        $inputs = array_filter($inputs, function ($input) {
303
+        $inputs = array_filter($inputs, function($input) {
304 304
             return $input !== '' && !is_null($input);
305 305
         });
306 306
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             }
329 329
         }
330 330
 
331
-        return tap(array_filter($conditions), function ($conditions) {
331
+        return tap(array_filter($conditions), function($conditions) {
332 332
             if (!empty($conditions)) {
333 333
                 $this->expand();
334 334
             }
@@ -346,9 +346,9 @@  discard block
 block discarded – undo
346 346
             return $inputs;
347 347
         }
348 348
 
349
-        $inputs = collect($inputs)->filter(function ($input, $key) {
349
+        $inputs = collect($inputs)->filter(function($input, $key) {
350 350
             return Str::startsWith($key, "{$this->name}_");
351
-        })->mapWithKeys(function ($val, $key) {
351
+        })->mapWithKeys(function($val, $key) {
352 352
             $key = str_replace("{$this->name}_", '', $key);
353 353
 
354 354
             return [$key => $val];
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      */
419 419
     public function scope($key, $label = '')
420 420
     {
421
-        return tap(new Scope($key, $label), function (Scope $scope) {
421
+        return tap(new Scope($key, $label), function(Scope $scope) {
422 422
             return $this->scopes->push($scope);
423 423
         });
424 424
     }
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
     {
443 443
         $key = request(Scope::QUERY_NAME);
444 444
 
445
-        return $this->scopes->first(function ($scope) use ($key) {
445
+        return $this->scopes->first(function($scope) use ($key) {
446 446
             return $scope->key == $key;
447 447
         });
448 448
     }
@@ -567,9 +567,9 @@  discard block
 block discarded – undo
567 567
 
568 568
         $columns->push($pageKey);
569 569
 
570
-        $groupNames = collect($this->filters)->filter(function ($filter) {
570
+        $groupNames = collect($this->filters)->filter(function($filter) {
571 571
             return $filter instanceof Filter\Group;
572
-        })->map(function (AbstractFilter $filter) {
572
+        })->map(function(AbstractFilter $filter) {
573 573
             return "{$filter->getId()}_group";
574 574
         });
575 575
 
Please login to merge, or discard this patch.