@@ -74,8 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | $columns = $requestColumn ? explode(',', $requestColumn) : []; |
76 | 76 | |
77 | - return array_filter($columns) ?: |
|
78 | - array_values(array_diff($this->columnNames, $this->hiddenColumns)); |
|
77 | + return array_filter($columns) ?: array_values(array_diff($this->columnNames, $this->hiddenColumns)); |
|
79 | 78 | } |
80 | 79 | |
81 | 80 | /** |
@@ -93,7 +92,7 @@ discard block |
||
93 | 92 | |
94 | 93 | array_push($visible, Grid\Column::SELECT_COLUMN_NAME, Grid\Column::ACTION_COLUMN_NAME); |
95 | 94 | |
96 | - return $this->columns->filter(function (Grid\Column $column) use ($visible) { |
|
95 | + return $this->columns->filter(function(Grid\Column $column) use ($visible) { |
|
97 | 96 | return in_array($column->getName(), $visible); |
98 | 97 | }); |
99 | 98 | } |
@@ -113,7 +112,7 @@ discard block |
||
113 | 112 | |
114 | 113 | array_push($visible, Grid\Column::SELECT_COLUMN_NAME, Grid\Column::ACTION_COLUMN_NAME); |
115 | 114 | |
116 | - return collect($this->columnNames)->filter(function ($column) use ($visible) { |
|
115 | + return collect($this->columnNames)->filter(function($column) use ($visible) { |
|
117 | 116 | return in_array($column, $visible); |
118 | 117 | })->toArray(); |
119 | 118 | } |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | |
431 | 431 | $column = $this; |
432 | 432 | |
433 | - return $this->display(function ($value) use ($grid, $column, $abstract, $arguments) { |
|
433 | + return $this->display(function($value) use ($grid, $column, $abstract, $arguments) { |
|
434 | 434 | /** @var AbstractDisplayer $displayer */ |
435 | 435 | $displayer = new $abstract($value, $grid, $column, $this); |
436 | 436 | |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | |
480 | 480 | $grid = $this->grid; |
481 | 481 | |
482 | - return $this->display(function ($_, $column) use ($action, $grid) { |
|
482 | + return $this->display(function($_, $column) use ($action, $grid) { |
|
483 | 483 | /** @var RowAction $action */ |
484 | 484 | $action = new $action(); |
485 | 485 | |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | $grid = $this->grid; |
608 | 608 | $column = $this; |
609 | 609 | |
610 | - $this->display(function ($value) use ($grid, $column, $class) { |
|
610 | + $this->display(function($value) use ($grid, $column, $class) { |
|
611 | 611 | /** @var AbstractDisplayer $definition */ |
612 | 612 | $definition = new $class($value, $grid, $column, $this); |
613 | 613 | |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | protected function htmlEntityEncode($item) |
626 | 626 | { |
627 | 627 | if (is_array($item)) { |
628 | - array_walk_recursive($item, function (&$value) { |
|
628 | + array_walk_recursive($item, function(&$value) { |
|
629 | 629 | $value = htmlentities($value ?? ''); |
630 | 630 | }); |
631 | 631 | } else { |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | */ |
663 | 663 | protected function callSupportDisplayer($abstract, $arguments) |
664 | 664 | { |
665 | - return $this->display(function ($value) use ($abstract, $arguments) { |
|
665 | + return $this->display(function($value) use ($abstract, $arguments) { |
|
666 | 666 | if (is_array($value) || $value instanceof Arrayable) { |
667 | 667 | return call_user_func_array([collect($value), $abstract], $arguments); |
668 | 668 | } |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | protected function callBuiltinDisplayer($abstract, $arguments) |
687 | 687 | { |
688 | 688 | if ($abstract instanceof Closure) { |
689 | - return $this->display(function ($value) use ($abstract, $arguments) { |
|
689 | + return $this->display(function($value) use ($abstract, $arguments) { |
|
690 | 690 | return $abstract->call($this, ...array_merge([$value], $arguments)); |
691 | 691 | }); |
692 | 692 | } |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | $grid = $this->grid; |
696 | 696 | $column = $this; |
697 | 697 | |
698 | - return $this->display(function ($value) use ($abstract, $grid, $column, $arguments) { |
|
698 | + return $this->display(function($value) use ($abstract, $grid, $column, $arguments) { |
|
699 | 699 | /** @var AbstractDisplayer $displayer */ |
700 | 700 | $displayer = new $abstract($value, $grid, $column, $this); |
701 | 701 |