@@ -9,6 +9,9 @@ |
||
9 | 9 | { |
10 | 10 | private $grids; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $name |
|
14 | + */ |
|
12 | 15 | public function __construct($name, array $grids) |
13 | 16 | { |
14 | 17 | parent::__construct($name); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function __construct($name, array $grids) |
13 | 13 | { |
14 | 14 | parent::__construct($name); |
15 | - array_map(function (GridMetadata $grid) { |
|
15 | + array_map(function(GridMetadata $grid) { |
|
16 | 16 | }, $grids); |
17 | 17 | |
18 | 18 | $this->grids = $grids; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Psi\Component\Grid\Metadata\Driver; |
4 | 4 | |
5 | 5 | use Metadata\Driver\AdvancedDriverInterface; |
6 | -use Psi\Component\ContentType\Metadata\PropertyMetadata; |
|
7 | 6 | use Psi\Component\Grid\Metadata\ColumnMetadata; |
8 | 7 | use Psi\Component\Grid\Metadata\GridMetadata; |
9 | 8 | use Psi\Component\Grid\Metadata\ClassMetadata; |
@@ -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\Metadata; |
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 |
@@ -22,6 +22,6 @@ |
||
22 | 22 | public function configureOptions(OptionsResolver $options) |
23 | 23 | { |
24 | 24 | $options->setRequired(['property']); |
25 | - $options->setAllowedTypes('property', [ 'string' ]); |
|
25 | + $options->setAllowedTypes('property', ['string']); |
|
26 | 26 | } |
27 | 27 | } |