Completed
Pull Request — master (#15)
by Daniel
02:00
created
lib/GridFactory.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         if ($filterData) {
58 58
             $form->submit($options->getFilter());
59 59
             $data = $form->getData();
60
-            $data = array_filter($data, function (FilterDataInterface $filterData) {
60
+            $data = array_filter($data, function(FilterDataInterface $filterData) {
61 61
                 return null !== $filterData->getValue();
62 62
             });
63 63
 
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
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $options = array_merge($defaults, $options);
33 33
 
34 34
         // normalize the orderings
35
-        $options['orderings'] = array_map(function ($order) {
35
+        $options['orderings'] = array_map(function($order) {
36 36
             $order = strtolower($order);
37 37
 
38 38
             if (false === in_array($order, ['asc', 'desc'])) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     public function getFilterActionOptions(): array
99 99
     {
100
-        return array_filter($this->getOptions(), function ($key) {
100
+        return array_filter($this->getOptions(), function($key) {
101 101
             return $key !== 'filter';
102 102
         }, ARRAY_FILTER_USE_KEY);
103 103
     }
Please login to merge, or discard this patch.