@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | /** |
| 219 | 219 | * Set model for column. |
| 220 | 220 | * |
| 221 | - * @param $model |
|
| 221 | + * @param Model $model |
|
| 222 | 222 | */ |
| 223 | 223 | public function setModel($model) |
| 224 | 224 | { |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | /** |
| 348 | 348 | * Get name of this column. |
| 349 | 349 | * |
| 350 | - * @return mixed |
|
| 350 | + * @return string |
|
| 351 | 351 | */ |
| 352 | 352 | public function getName() |
| 353 | 353 | { |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | /** |
| 386 | 386 | * Get label of the column. |
| 387 | 387 | * |
| 388 | - * @return mixed |
|
| 388 | + * @return string |
|
| 389 | 389 | */ |
| 390 | 390 | public function getLabel() |
| 391 | 391 | { |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | * Display using display abstract. |
| 487 | 487 | * |
| 488 | 488 | * @param string $abstract |
| 489 | - * @param array $arguments |
|
| 489 | + * @param Closure[] $arguments |
|
| 490 | 490 | * |
| 491 | 491 | * @return $this |
| 492 | 492 | */ |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | */ |
| 287 | 287 | protected 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |