| @@ -268,7 +268,7 @@ discard block | ||
| 268 | 268 | * Get or set option for grid. | 
| 269 | 269 | * | 
| 270 | 270 | * @param string $key | 
| 271 | - * @param mixed $value | |
| 271 | + * @param boolean $value | |
| 272 | 272 | * | 
| 273 | 273 | * @return $this|mixed | 
| 274 | 274 | */ | 
| @@ -453,7 +453,7 @@ discard block | ||
| 453 | 453 | /** | 
| 454 | 454 | * Get the grid paginator. | 
| 455 | 455 | * | 
| 456 | - * @return mixed | |
| 456 | + * @return Tools\Paginator | |
| 457 | 457 | */ | 
| 458 | 458 | public function paginator() | 
| 459 | 459 |      { | 
| @@ -807,7 +807,7 @@ discard block | ||
| 807 | 807 | /** | 
| 808 | 808 | * Dynamically add columns to the grid view. | 
| 809 | 809 | * | 
| 810 | - * @param $method | |
| 810 | + * @param string $method | |
| 811 | 811 | * @param $arguments | 
| 812 | 812 | * | 
| 813 | 813 | * @return Column | 
| @@ -79,7 +79,7 @@ | ||
| 79 | 79 | $input = array_merge($input, $constraints); | 
| 80 | 80 | } | 
| 81 | 81 | |
| 82 | - return $this->resource() . '?' . http_build_query($input); | |
| 82 | + return $this->resource().'?'.http_build_query($input); | |
| 83 | 83 | } | 
| 84 | 84 | |
| 85 | 85 | /** | 
| @@ -139,17 +139,17 @@ discard block | ||
| 139 | 139 | call_user_func($this->callback, $this); | 
| 140 | 140 | } | 
| 141 | 141 | |
| 142 | -        $response = function () { | |
| 142 | +        $response = function() { | |
| 143 | 143 |              $handle = fopen('php://output', 'w'); | 
| 144 | 144 | $titles = []; | 
| 145 | 145 | |
| 146 | -            $this->chunk(function ($collection) use ($handle, &$titles) { | |
| 146 | +            $this->chunk(function($collection) use ($handle, &$titles) { | |
| 147 | 147 | |
| 148 | 148 | Column::setOriginalGridModels($collection); | 
| 149 | 149 | |
| 150 | 150 | $original = $current = $collection->toArray(); | 
| 151 | 151 | |
| 152 | -                $this->grid->getColumns()->map(function (Column $column) use (&$current) { | |
| 152 | +                $this->grid->getColumns()->map(function(Column $column) use (&$current) { | |
| 153 | 153 | $current = $column->fill($current); | 
| 154 | 154 | $this->grid->columnNames[] = $column->getName(); | 
| 155 | 155 | }); | 
| @@ -178,7 +178,7 @@ discard block | ||
| 178 | 178 | protected function getVisiableTitles() | 
| 179 | 179 |      { | 
| 180 | 180 | $titles = $this->grid->visibleColumns() | 
| 181 | -            ->mapWithKeys(function (Column $column) { | |
| 181 | +            ->mapWithKeys(function(Column $column) { | |
| 182 | 182 | return [$column->getName() => $column->getLabel()]; | 
| 183 | 183 | }); | 
| 184 | 184 | |