@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | |
| 372 | 372 | array_push($visible, '__row_selector__', '__actions__'); |
| 373 | 373 | |
| 374 | - return $this->columns->filter(function (Column $column) use ($visible) { |
|
| 374 | + return $this->columns->filter(function(Column $column) use ($visible) { |
|
| 375 | 375 | return in_array($column->getName(), $visible); |
| 376 | 376 | }); |
| 377 | 377 | } |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | |
| 392 | 392 | array_push($visible, '__row_selector__', '__actions__'); |
| 393 | 393 | |
| 394 | - return collect($this->columnNames)->filter(function ($column) use ($visible) { |
|
| 394 | + return collect($this->columnNames)->filter(function($column) use ($visible) { |
|
| 395 | 395 | return in_array($column, $visible); |
| 396 | 396 | }); |
| 397 | 397 | } |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | $column = new Column($column, $label); |
| 410 | 410 | $column->setGrid($this); |
| 411 | 411 | |
| 412 | - return tap($column, function ($value) { |
|
| 412 | + return tap($column, function($value) { |
|
| 413 | 413 | $this->columns->push($value); |
| 414 | 414 | }); |
| 415 | 415 | } |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | $column = new Column($column, $label); |
| 428 | 428 | $column->setGrid($this); |
| 429 | 429 | |
| 430 | - return tap($column, function ($value) { |
|
| 430 | + return tap($column, function($value) { |
|
| 431 | 431 | $this->columns->prepend($value); |
| 432 | 432 | }); |
| 433 | 433 | } |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | |
| 585 | 585 | Column::setOriginalGridModels($collection); |
| 586 | 586 | |
| 587 | - $this->columns->map(function (Column $column) use (&$data) { |
|
| 587 | + $this->columns->map(function(Column $column) use (&$data) { |
|
| 588 | 588 | $data = $column->fill($data); |
| 589 | 589 | |
| 590 | 590 | $this->columnNames[] = $column->getName(); |
@@ -688,7 +688,7 @@ discard block |
||
| 688 | 688 | */ |
| 689 | 689 | protected function buildRows(array $data) |
| 690 | 690 | { |
| 691 | - $this->rows = collect($data)->map(function ($model, $number) { |
|
| 691 | + $this->rows = collect($data)->map(function($model, $number) { |
|
| 692 | 692 | return new Row($number, $model); |
| 693 | 693 | }); |
| 694 | 694 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function disableFilterButton(bool $disable = true) |
| 87 | 87 | { |
| 88 | - $this->tools = $this->tools->map(function (AbstractTool $tool) use ($disable) { |
|
| 88 | + $this->tools = $this->tools->map(function(AbstractTool $tool) use ($disable) { |
|
| 89 | 89 | if ($tool instanceof FilterButton) { |
| 90 | 90 | return $tool->disable($disable); |
| 91 | 91 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function disableRefreshButton(bool $disable = true) |
| 102 | 102 | { |
| 103 | - $this->tools = $this->tools->map(function (AbstractTool $tool) use ($disable) { |
|
| 103 | + $this->tools = $this->tools->map(function(AbstractTool $tool) use ($disable) { |
|
| 104 | 104 | if ($tool instanceof RefreshButton) { |
| 105 | 105 | return $tool->disable($disable); |
| 106 | 106 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | public function disableBatchActions(bool $disable = true) |
| 117 | 117 | { |
| 118 | - $this->tools = $this->tools->map(function ($tool) use ($disable) { |
|
| 118 | + $this->tools = $this->tools->map(function($tool) use ($disable) { |
|
| 119 | 119 | if ($tool instanceof BatchActions) { |
| 120 | 120 | return $tool->disable($disable); |
| 121 | 121 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function batch(\Closure $closure) |
| 130 | 130 | { |
| 131 | - call_user_func($closure, $this->tools->first(function ($tool) { |
|
| 131 | + call_user_func($closure, $this->tools->first(function($tool) { |
|
| 132 | 132 | return $tool instanceof BatchActions; |
| 133 | 133 | })); |
| 134 | 134 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function render() |
| 142 | 142 | { |
| 143 | - return $this->tools->map(function ($tool) { |
|
| 143 | + return $this->tools->map(function($tool) { |
|
| 144 | 144 | if ($tool instanceof AbstractTool) { |
| 145 | 145 | if (!$tool->allowed()) { |
| 146 | 146 | return ''; |