@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | * Get or set option for grid. |
| 270 | 270 | * |
| 271 | 271 | * @param string $key |
| 272 | - * @param mixed $value |
|
| 272 | + * @param boolean $value |
|
| 273 | 273 | * |
| 274 | 274 | * @return $this|mixed |
| 275 | 275 | */ |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | /** |
| 455 | 455 | * Get the grid paginator. |
| 456 | 456 | * |
| 457 | - * @return mixed |
|
| 457 | + * @return Tools\Paginator |
|
| 458 | 458 | */ |
| 459 | 459 | public function paginator() |
| 460 | 460 | { |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | } |
| 533 | 533 | |
| 534 | 534 | /** |
| 535 | - * @return array|Collection|mixed |
|
| 535 | + * @return Collection |
|
| 536 | 536 | */ |
| 537 | 537 | protected function applyQuery() |
| 538 | 538 | { |
@@ -829,7 +829,7 @@ discard block |
||
| 829 | 829 | /** |
| 830 | 830 | * Dynamically add columns to the grid view. |
| 831 | 831 | * |
| 832 | - * @param $method |
|
| 832 | + * @param string $method |
|
| 833 | 833 | * @param $arguments |
| 834 | 834 | * |
| 835 | 835 | * @return Column |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * @param string $column |
| 58 | 58 | * @param string $label |
| 59 | 59 | * @param array $options |
| 60 | - * @param null $query |
|
| 60 | + * @param null|\Closure $query |
|
| 61 | 61 | * @param string $type |
| 62 | 62 | * |
| 63 | 63 | * @return $this |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | return []; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - $selected = array_filter($selected, function ($value) { |
|
| 109 | + $selected = array_filter($selected, function($value) { |
|
| 110 | 110 | return !is_null($value); |
| 111 | 111 | }); |
| 112 | 112 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | Admin::script($this->script()); |
| 69 | 69 | |
| 70 | - $options = $this->getOptions()->map(function ($option) { |
|
| 70 | + $options = $this->getOptions()->map(function($option) { |
|
| 71 | 71 | $selected = ($option == $this->perPage) ? 'selected' : ''; |
| 72 | 72 | $url = \request()->fullUrlWithQuery([$this->perPageName => $option]); |
| 73 | 73 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | call_user_func($closure, $this->selector); |
| 28 | 28 | |
| 29 | - $this->header(function () { |
|
| 29 | + $this->header(function() { |
|
| 30 | 30 | return $this->renderSelector(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $active = Selector::parseSelected(); |
| 48 | 48 | |
| 49 | - $this->selector->getSelectors()->each(function ($selector, $column) use ($active) { |
|
| 49 | + $this->selector->getSelectors()->each(function($selector, $column) use ($active) { |
|
| 50 | 50 | if (!array_key_exists($column, $active)) { |
| 51 | 51 | return; |
| 52 | 52 | } |