@@ -7,7 +7,6 @@ |
||
7 | 7 | use Symfony\Component\Form\AbstractType; |
8 | 8 | use Symfony\Component\Form\Extension\Core\Type\FormType; |
9 | 9 | use Symfony\Component\Form\FormBuilderInterface; |
10 | -use Symfony\Component\OptionsResolver\Options; |
|
11 | 10 | use Symfony\Component\OptionsResolver\OptionsResolver; |
12 | 11 | use Psi\Component\Grid\CellWithFormInterface; |
13 | 12 | use Psi\Component\Grid\RowData; |
@@ -5,10 +5,7 @@ |
||
5 | 5 | namespace Psi\Component\Grid; |
6 | 6 | |
7 | 7 | use Metadata\MetadataFactory; |
8 | -use Psi\Component\Grid\Metadata\GridMetadata; |
|
9 | 8 | use Psi\Component\ObjectAgent\AgentFinder; |
10 | -use Psi\Component\ObjectAgent\AgentInterface; |
|
11 | -use Psi\Component\ObjectAgent\Query\Query; |
|
12 | 9 | use Psi\Component\Grid\Grid; |
13 | 10 | use Psi\Component\Grid\GridViewFactory; |
14 | 11 |
@@ -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 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $options = array_merge($defaults, $options); |
34 | 34 | |
35 | 35 | // normalize the orderings |
36 | - $options['orderings'] = array_map(function ($order) { |
|
36 | + $options['orderings'] = array_map(function($order) { |
|
37 | 37 | $order = strtolower($order); |
38 | 38 | |
39 | 39 | if (false === in_array($order, ['asc', 'desc'])) { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | // TODO: Test this (selected removal) |
95 | 95 | return array_merge([ |
96 | 96 | 'class' => $this->classFqn, |
97 | - ], array_filter($this->options, function ($key) { |
|
97 | + ], array_filter($this->options, function($key) { |
|
98 | 98 | return $key !== 'selected'; |
99 | 99 | }, ARRAY_FILTER_USE_KEY)); |
100 | 100 | } |