@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Cell; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Cell; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Cell; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Cell; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Cell; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Cell; |
| 6 | 6 | |
@@ -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\View; |
| 6 | 6 | |
@@ -25,14 +25,14 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function getUrlParametersForFilter() |
| 27 | 27 | { |
| 28 | - return array_filter($this->options->getUrlParameters(), function ($key) { |
|
| 28 | + return array_filter($this->options->getUrlParameters(), function($key) { |
|
| 29 | 29 | return $key !== 'filter'; |
| 30 | 30 | }, ARRAY_FILTER_USE_KEY); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function getFilterUrlParameters() |
| 34 | 34 | { |
| 35 | - return array_filter($this->options->getUrlParameters(), function ($key) { |
|
| 35 | + return array_filter($this->options->getUrlParameters(), function($key) { |
|
| 36 | 36 | return $key === 'filter'; |
| 37 | 37 | }, ARRAY_FILTER_USE_KEY); |
| 38 | 38 | } |
@@ -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\Column; |
| 6 | 6 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $cell->template = 'Property'; |
| 29 | 29 | |
| 30 | 30 | if (false === is_object($cell->context)) { |
| 31 | - $property = '[' . $property . ']'; |
|
| 31 | + $property = '['.$property.']'; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $cell->value = $this->accessor->getValue($cell->context, $property); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | $options->setDefault('property', null); |
| 40 | 40 | $options->setAllowedTypes('property', ['string', 'null']); |
| 41 | - $options->setNormalizer('property', function (OptionsResolver $options, $value) { |
|
| 41 | + $options->setNormalizer('property', function(OptionsResolver $options, $value) { |
|
| 42 | 42 | if (null !== $value) { |
| 43 | 43 | return $value; |
| 44 | 44 | } |
@@ -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\Filter; |
| 6 | 6 | |
@@ -33,11 +33,11 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | private function getChoices(array $supportedComparators, array $enabledComparators) |
| 35 | 35 | { |
| 36 | - $supported = array_keys(array_filter($this->getComparatorMap(), function ($comparator) use ($supportedComparators) { |
|
| 36 | + $supported = array_keys(array_filter($this->getComparatorMap(), function($comparator) use ($supportedComparators) { |
|
| 37 | 37 | return in_array($comparator, $supportedComparators); |
| 38 | 38 | })); |
| 39 | 39 | |
| 40 | - $supported = array_filter($supported, function ($comparator) use ($enabledComparators) { |
|
| 40 | + $supported = array_filter($supported, function($comparator) use ($enabledComparators) { |
|
| 41 | 41 | return in_array($comparator, $enabledComparators); |
| 42 | 42 | }); |
| 43 | 43 | |