@@ -10,6 +10,9 @@ |
||
10 | 10 | { |
11 | 11 | private $roles = []; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $name |
|
15 | + */ |
|
13 | 16 | public function __construct( |
14 | 17 | $name |
15 | 18 | ) { |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Util\ClassUtils; |
6 | 6 | use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
7 | -use Doctrine\ODM\PHPCR\Event; |
|
8 | -use Metadata\MetadataFactory; |
|
9 | 7 | use Metadata\MetadataFactoryInterface; |
10 | 8 | |
11 | 9 | /** |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Doctrine\ODM\PHPCR\ChildrenCollection; |
6 | 6 | use Psi\Bridge\ContentType\Doctrine\PhpcrOdm\Tests\Functional\Example\Article; |
7 | 7 | use Psi\Bridge\ContentType\Doctrine\PhpcrOdm\Tests\Functional\Example\ArticleWithRestrictedChildren; |
8 | -use Psi\Bridge\ContentType\Doctrine\PhpcrOdm\Tests\Functional\Example\Image; |
|
9 | 8 | use Psi\Bridge\ContentType\Doctrine\PhpcrOdm\Tests\Functional\Example\ImageNotAssignedGenerator; |
10 | 9 | |
11 | 10 | class ObjectTest extends PhpcrOdmTestCase |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | private function loadDoctrineDbal() |
37 | 37 | { |
38 | - $this['dbal.connection'] = function () { |
|
38 | + $this['dbal.connection'] = function() { |
|
39 | 39 | return DriverManager::getConnection([ |
40 | 40 | 'driver' => 'pdo_sqlite', |
41 | 41 | 'path' => $this['config']['db_path'], |
@@ -45,25 +45,25 @@ discard block |
||
45 | 45 | |
46 | 46 | private function loadPhpcrOdm() |
47 | 47 | { |
48 | - $this['psi_content_type.storage.doctrine.phpcr_odm.property_encoder'] = function ($container) { |
|
48 | + $this['psi_content_type.storage.doctrine.phpcr_odm.property_encoder'] = function($container) { |
|
49 | 49 | return new PropertyEncoder('psict', 'https://github.com/psiphp/content-type'); |
50 | 50 | }; |
51 | 51 | |
52 | - $this['psi_content_type.storage.doctrine.phpcr_odm.field_mapper'] = function ($container) { |
|
52 | + $this['psi_content_type.storage.doctrine.phpcr_odm.field_mapper'] = function($container) { |
|
53 | 53 | return new FieldMapper( |
54 | 54 | $container['psi_content_type.storage.doctrine.phpcr_odm.property_encoder'], |
55 | 55 | $container['psi_content_type.field_loader'] |
56 | 56 | ); |
57 | 57 | }; |
58 | 58 | |
59 | - $this['psi_content_type.storage.doctrine.phpcr_odm.collection_updater'] = function ($container) { |
|
59 | + $this['psi_content_type.storage.doctrine.phpcr_odm.collection_updater'] = function($container) { |
|
60 | 60 | return new CollectionIdentifierUpdater( |
61 | 61 | $container['psi_content_type.metadata.factory'], |
62 | 62 | $container['psi_content_type.storage.doctrine.phpcr_odm.property_encoder'] |
63 | 63 | ); |
64 | 64 | }; |
65 | 65 | |
66 | - $this['doctrine_phpcr.document_manager'] = function ($container) { |
|
66 | + $this['doctrine_phpcr.document_manager'] = function($container) { |
|
67 | 67 | $registerNodeTypes = false; |
68 | 68 | |
69 | 69 | // automatically setup the schema if the db doesn't exist yet. |
@@ -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\ContentType\View; |
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\ContentType\View; |
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\ContentType\View; |
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\ContentType\View; |
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\ContentType\View; |
6 | 6 |