@@ -72,8 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $columns = explode(',', request(ColumnSelector::SELECT_COLUMN_NAME)); |
| 74 | 74 | |
| 75 | - return array_filter($columns) ?: |
|
| 76 | - array_values(array_diff($this->columnNames, $this->hiddenColumns)); |
|
| 75 | + return array_filter($columns) ?: array_values(array_diff($this->columnNames, $this->hiddenColumns)); |
|
| 77 | 76 | } |
| 78 | 77 | |
| 79 | 78 | /** |
@@ -91,7 +90,7 @@ discard block |
||
| 91 | 90 | |
| 92 | 91 | array_push($visible, Grid\Column::SELECT_COLUMN_NAME, Grid\Column::ACTION_COLUMN_NAME); |
| 93 | 92 | |
| 94 | - return $this->columns->filter(function (Grid\Column $column) use ($visible) { |
|
| 93 | + return $this->columns->filter(function(Grid\Column $column) use ($visible) { |
|
| 95 | 94 | return in_array($column->getName(), $visible); |
| 96 | 95 | }); |
| 97 | 96 | } |
@@ -111,7 +110,7 @@ discard block |
||
| 111 | 110 | |
| 112 | 111 | array_push($visible, Grid\Column::SELECT_COLUMN_NAME, Grid\Column::ACTION_COLUMN_NAME); |
| 113 | 112 | |
| 114 | - return collect($this->columnNames)->filter(function ($column) use ($visible) { |
|
| 113 | + return collect($this->columnNames)->filter(function($column) use ($visible) { |
|
| 115 | 114 | return in_array($column, $visible); |
| 116 | 115 | })->toArray(); |
| 117 | 116 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function render() |
| 63 | 63 | { |
| 64 | - $columns = $this->getGrid()->visibleColumns()->flatMap(function (Column $column) { |
|
| 64 | + $columns = $this->getGrid()->visibleColumns()->flatMap(function(Column $column) { |
|
| 65 | 65 | $name = $column->getName(); |
| 66 | 66 | |
| 67 | 67 | $total = ''; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function disableFilterButton(bool $disable = true) |
| 86 | 86 | { |
| 87 | - $this->tools = $this->tools->map(function ($tool) use ($disable) { |
|
| 87 | + $this->tools = $this->tools->map(function($tool) use ($disable) { |
|
| 88 | 88 | if ($tool instanceof FilterButton) { |
| 89 | 89 | return $tool->disable($disable); |
| 90 | 90 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function disableBatchActions(bool $disable = true) |
| 114 | 114 | { |
| 115 | - $this->tools = $this->tools->map(function ($tool) use ($disable) { |
|
| 115 | + $this->tools = $this->tools->map(function($tool) use ($disable) { |
|
| 116 | 116 | if ($tool instanceof BatchActions) { |
| 117 | 117 | return $tool->disable($disable); |
| 118 | 118 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function batch(\Closure $closure) |
| 128 | 128 | { |
| 129 | - call_user_func($closure, $this->tools->first(function ($tool) { |
|
| 129 | + call_user_func($closure, $this->tools->first(function($tool) { |
|
| 130 | 130 | return $tool instanceof BatchActions; |
| 131 | 131 | })); |
| 132 | 132 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function render() |
| 140 | 140 | { |
| 141 | - return $this->tools->map(function ($tool) { |
|
| 141 | + return $this->tools->map(function($tool) { |
|
| 142 | 142 | if ($tool instanceof AbstractTool) { |
| 143 | 143 | if (!$tool->allowed()) { |
| 144 | 144 | return ''; |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $this->right(new RefreshButton()); |
| 75 | 75 | |
| 76 | - return $this->elements[$part]->map(function ($element) { |
|
| 76 | + return $this->elements[$part]->map(function($element) { |
|
| 77 | 77 | if ($element instanceof Htmlable) { |
| 78 | 78 | return $element->toHtml(); |
| 79 | 79 | } |