@@ -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 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Metadata\MetadataFactory; |
6 | 6 | use Metadata\NullMetadata; |
7 | 7 | use Psi\Component\ContentType\FieldLoader; |
8 | - |
|
9 | 8 | use Psi\Component\ContentType\LoadedField; |
10 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
11 | 10 |
@@ -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. |