@@ -22,11 +22,11 @@ |
||
22 | 22 | |
23 | 23 | private function loadOrm() |
24 | 24 | { |
25 | - $this['psi_content_type.storage.doctrine.orm.field_mapper'] = function ($container) { |
|
25 | + $this['psi_content_type.storage.doctrine.orm.field_mapper'] = function($container) { |
|
26 | 26 | return new FieldMapper( |
27 | 27 | ); |
28 | 28 | }; |
29 | - $this['doctrine.entity_manager'] = function ($container) { |
|
29 | + $this['doctrine.entity_manager'] = function($container) { |
|
30 | 30 | $dbParams = [ |
31 | 31 | 'driver' => 'pdo_sqlite', |
32 | 32 | 'path' => $this['config']['db_path'], |
@@ -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\Bridge\ContentType\Doctrine\Orm; |
6 | 6 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $metadata->mapManyToOne([ |
75 | 75 | 'fieldName' => $fieldName, |
76 | 76 | 'targetEntity' => $options['class'], |
77 | - 'cascade' => [ 'all' ], |
|
77 | + 'cascade' => ['all'], |
|
78 | 78 | ]); |
79 | 79 | return; |
80 | 80 | } |
@@ -14,6 +14,6 @@ |
||
14 | 14 | public function configureOptions(OptionsResolver $resolver) |
15 | 15 | { |
16 | 16 | $resolver->setDefaults('class', null); |
17 | - $resolver->setAllowedTypes('class', [ 'null', 'array' ]); |
|
17 | + $resolver->setAllowedTypes('class', ['null', 'array']); |
|
18 | 18 | } |
19 | 19 | } |