@@ -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 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | public function getUrlParametersForFilter() |
| 26 | 26 | { |
| 27 | - return array_filter($this->options->getUrlParameters(), function ($key) { |
|
| 27 | + return array_filter($this->options->getUrlParameters(), function($key) { |
|
| 28 | 28 | return $key !== 'filter'; |
| 29 | 29 | }, ARRAY_FILTER_USE_KEY); |
| 30 | 30 | } |
@@ -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'])) { |
@@ -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 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | private function getExpression(GridMetadata $gridMetadata, array $filterData) |
| 77 | 77 | { |
| 78 | 78 | // remove any inactive filters |
| 79 | - $filterData = array_filter($filterData, function (FilterDataInterface $filterData) { |
|
| 79 | + $filterData = array_filter($filterData, function(FilterDataInterface $filterData) { |
|
| 80 | 80 | return null !== $filterData->getValue(); |
| 81 | 81 | }); |
| 82 | 82 | |
@@ -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 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | if (null === $this->numberOfRecords) { |
| 37 | 37 | throw new \RuntimeException( |
| 38 | - 'Cannot determine the last page when the total number of ' . |
|
| 38 | + 'Cannot determine the last page when the total number of '. |
|
| 39 | 39 | 'records has not been provided.' |
| 40 | 40 | ); |
| 41 | 41 | } |