@@ -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\Bridge\ObjectAgent\Doctrine\PhpcrOdm; |
| 6 | 6 | |
@@ -23,13 +23,13 @@ discard block |
||
| 23 | 23 | public function getDefaultConfig() |
| 24 | 24 | { |
| 25 | 25 | return [ |
| 26 | - 'db_path' => __DIR__ . '/../../../../cache/test.sqlite', |
|
| 26 | + 'db_path' => __DIR__.'/../../../../cache/test.sqlite', |
|
| 27 | 27 | ]; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function load(Container $container) |
| 31 | 31 | { |
| 32 | - $container->register('phpcr_odm', function (Container $container) { |
|
| 32 | + $container->register('phpcr_odm', function(Container $container) { |
|
| 33 | 33 | $dbPath = $container->getParameter('db_path'); |
| 34 | 34 | $registerNodeTypes = false; |
| 35 | 35 | |
@@ -63,9 +63,9 @@ discard block |
||
| 63 | 63 | $typeRegistrator->registerNodeTypes($session); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $xmlDriver = new XmlDriver([__DIR__ . '/mappings']); |
|
| 66 | + $xmlDriver = new XmlDriver([__DIR__.'/mappings']); |
|
| 67 | 67 | $annotationDriver = new AnnotationDriver(new AnnotationReader(), [ |
| 68 | - __DIR__ . '/../../../vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Document', |
|
| 68 | + __DIR__.'/../../../vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Document', |
|
| 69 | 69 | ]); |
| 70 | 70 | $chain = new MappingDriverChain(); |
| 71 | 71 | $chain->addDriver($xmlDriver, 'Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm\Tests\Functional\Model'); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | return DocumentManager::create($session, $config); |
| 78 | 78 | }); |
| 79 | 79 | |
| 80 | - $container->register('psi_object_agent.phpcr_odm', function (Container $container) { |
|
| 80 | + $container->register('psi_object_agent.phpcr_odm', function(Container $container) { |
|
| 81 | 81 | return new PhpcrOdmAgent($container->get('phpcr_odm')); |
| 82 | 82 | }); |
| 83 | 83 | } |