@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Psi\Component\Grid\View; |
6 | 6 | |
7 | -use Psi\Component\Grid\CellInterface; |
|
8 | 7 | use Psi\Component\Grid\ColumnFactory; |
9 | 8 | use Psi\Component\Grid\GridContext; |
10 | 9 | use Psi\Component\Grid\Metadata\GridMetadata; |
@@ -4,11 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace Psi\Component\Grid\Column; |
6 | 6 | |
7 | -use Psi\Component\Grid\CellInterface; |
|
8 | 7 | use Psi\Component\Grid\ColumnInterface; |
9 | -use Psi\Component\Grid\GridContext; |
|
10 | 8 | use Psi\Component\Grid\View\Cell; |
11 | -use Psi\Component\Grid\View\Header; |
|
12 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
13 | 10 | use Symfony\Component\PropertyAccess\PropertyAccess; |
14 | 11 | use Symfony\Component\PropertyAccess\PropertyAccessorInterface; |
@@ -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\Column; |
6 | 6 | |
@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | { |
37 | 37 | $options->setDefault('property', null); |
38 | 38 | $options->setAllowedTypes('property', ['string', 'null']); |
39 | - $options->setNormalizer('property', function (OptionsResolver $options, $value) { |
|
39 | + $options->setNormalizer('property', function(OptionsResolver $options, $value) { |
|
40 | 40 | if (null !== $value) { |
41 | 41 | return $value; |
42 | 42 | } |
43 | 43 | |
44 | 44 | return $options['column_name']; |
45 | 45 | }); |
46 | - $options->setNormalizer('sort_field', function (OptionsResolver $options, $value) { |
|
46 | + $options->setNormalizer('sort_field', function(OptionsResolver $options, $value) { |
|
47 | 47 | if (null !== $value) { |
48 | 48 | return $value; |
49 | 49 | } |
@@ -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 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | private function resolveLayers(ColumnInterface $column) |
61 | 61 | { |
62 | - $layers = [ $column ]; |
|
62 | + $layers = [$column]; |
|
63 | 63 | |
64 | 64 | while (null !== $parentType = $column->getParent()) { |
65 | 65 | $layers[] = $parent = $this->registry->get($parentType); |