@@ -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; |
| 6 | 6 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $criteria['criteria'] = $query->getExpression(); |
| 55 | 55 | } else { |
| 56 | 56 | // filter and user criterias need to be combined |
| 57 | - $criteria['criteria'] = new Composite(Composite::AND, [$query->getExpression(), $criteria['criteria']]); |
|
| 57 | + $criteria['criteria'] = new Composite(Composite:: AND , [$query->getExpression(), $criteria['criteria']]); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -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 | |
@@ -4,11 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Grid\Column; |
| 6 | 6 | |
| 7 | -use Psi\Component\Grid\CellInterface; |
|
| 8 | 7 | use Psi\Component\Grid\ColumnInterface; |
| 9 | -use Psi\Component\Grid\GridContext; |
|
| 10 | 8 | use Psi\Component\Grid\View\Cell; |
| 11 | -use Psi\Component\Grid\View\Header; |
|
| 12 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 13 | 10 | use Symfony\Component\PropertyAccess\PropertyAccess; |
| 14 | 11 | use Symfony\Component\PropertyAccess\PropertyAccessorInterface; |
@@ -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 | |
@@ -36,14 +36,14 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $options->setDefault('property', null); |
| 38 | 38 | $options->setAllowedTypes('property', ['string', 'null']); |
| 39 | - $options->setNormalizer('property', function (OptionsResolver $options, $value) { |
|
| 39 | + $options->setNormalizer('property', function(OptionsResolver $options, $value) { |
|
| 40 | 40 | if (null !== $value) { |
| 41 | 41 | return $value; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | return $options['column_name']; |
| 45 | 45 | }); |
| 46 | - $options->setNormalizer('sort_field', function (OptionsResolver $options, $value) { |
|
| 46 | + $options->setNormalizer('sort_field', function(OptionsResolver $options, $value) { |
|
| 47 | 47 | if (null !== $value) { |
| 48 | 48 | return $value; |
| 49 | 49 | } |