@@ -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 | |
@@ -57,7 +57,7 @@ discard block |
||
| 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 | |
@@ -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 | |
@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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 | } |