@@ -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\Component\ObjectAgent\Query; |
6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | public function __construct(array $expressions) |
12 | 12 | { |
13 | 13 | // ensure types |
14 | - array_map(function (Expression $expr) { |
|
14 | + array_map(function(Expression $expr) { |
|
15 | 15 | }, $expressions); |
16 | 16 | |
17 | 17 | $this->expressions = $expressions; |
@@ -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 |
@@ -7,10 +7,6 @@ |
||
7 | 7 | use Psi\Component\ObjectAgent\AgentInterface; |
8 | 8 | use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
9 | 9 | use Doctrine\Common\Util\ClassUtils; |
10 | -use Psi\Component\ObjectAgent\Agent\Doctrine\Event\PhpcrOdmObjectEvent; |
|
11 | -use Psi\Component\ObjectAgent\Agent\Doctrine\Event\ObjectEvent; |
|
12 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
13 | -use Psi\Component\ObjectAgent\Events; |
|
14 | 10 | use Psi\Component\ObjectAgent\Query\Query; |
15 | 11 | use Psi\Component\ObjectAgent\Exception\ObjectNotFoundException; |
16 | 12 | use Doctrine\Common\Persistence\Mapping\MappingException; |
@@ -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 |
@@ -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\Component\ObjectAgent; |
6 | 6 | |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | public function __construct(array $agents) |
12 | 12 | { |
13 | - array_map(function (AgentInterface $agent) { |
|
13 | + array_map(function(AgentInterface $agent) { |
|
14 | 14 | }, $agents); |
15 | 15 | $this->agents = $agents; |
16 | 16 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | - $classes = array_map(function ($element) { |
|
26 | + $classes = array_map(function($element) { |
|
27 | 27 | return get_class($element); |
28 | 28 | }, $this->agents); |
29 | 29 |
@@ -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 | } |