Completed
Push — master ( 30a2df...17c1e7 )
by Song
02:52
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
             if (!empty($conditions)) {
236 236
                 $this->expand();
237 237
             }
@@ -249,9 +249,9 @@  discard block
 block discarded – undo
249 249
             return $inputs;
250 250
         }
251 251
 
252
-        $inputs = collect($inputs)->filter(function ($input, $key) {
252
+        $inputs = collect($inputs)->filter(function($input, $key) {
253 253
             return starts_with($key, "{$this->name}_");
254
-        })->mapWithKeys(function ($val, $key) {
254
+        })->mapWithKeys(function($val, $key) {
255 255
             $key = str_replace("{$this->name}_", '', $key);
256 256
 
257 257
             return [$key => $val];
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      */
302 302
     public function scope($key, $label = '')
303 303
     {
304
-        return tap(new Scope($key, $label), function (Scope $scope) {
304
+        return tap(new Scope($key, $label), function(Scope $scope) {
305 305
             return $this->scopes->push($scope);
306 306
         });
307 307
     }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     {
326 326
         $key = request(Scope::QUERY_NAME);
327 327
 
328
-        return $this->scopes->first(function ($scope) use ($key) {
328
+        return $this->scopes->first(function($scope) use ($key) {
329 329
             return $scope->key == $key;
330 330
         });
331 331
     }
Please login to merge, or discard this patch.