@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Psi\Component\Grid\Metadata; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | ) { |
23 | 23 | $this->name = $name; |
24 | 24 | $this->type = $type; |
25 | - $this->groups = $groups ?: [ Grid::DEFAULT_GROUP ]; |
|
25 | + $this->groups = $groups ?: [Grid::DEFAULT_GROUP]; |
|
26 | 26 | $this->options = $options; |
27 | 27 | $this->tags = $tags; |
28 | 28 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Psi\Component\Grid\Metadata; |
6 | 6 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | public function getColumnsForGroups(array $groups): array |
40 | 40 | { |
41 | - return array_filter($this->columns, function (ColumnMetadata $column) use ($groups) { |
|
41 | + return array_filter($this->columns, function(ColumnMetadata $column) use ($groups) { |
|
42 | 42 | return 0 === count(array_diff($groups, $column->getGroups())); |
43 | 43 | }); |
44 | 44 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Psi\Component\Grid; |
6 | 6 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $defaults = [ |
25 | 25 | 'page_size' => 50, |
26 | 26 | 'page' => 1, |
27 | - 'groups' => [ Grid::DEFAULT_GROUP ], |
|
27 | + 'groups' => [Grid::DEFAULT_GROUP], |
|
28 | 28 | 'orderings' => [], |
29 | 29 | 'filter' => [], |
30 | 30 | 'variant' => Grid::DEFAULT_VARIANT, |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $options = array_merge($defaults, $options); |
43 | 43 | |
44 | 44 | // normalize the orderings |
45 | - $options['orderings'] = array_map(function ($order) { |
|
45 | + $options['orderings'] = array_map(function($order) { |
|
46 | 46 | $order = strtolower($order); |
47 | 47 | |
48 | 48 | if (false === in_array($order, ['asc', 'desc'])) { |