@@ -207,7 +207,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -55,7 +55,7 @@ |
||
| 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 | } |