Completed
Pull Request — master (#21)
by Daniel
02:31
created
lib/Form/Type/RowType.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/GridFactory.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,10 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/GridContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.