Completed
Pull Request — master (#1)
by Daniel
10:00
created
lib/Query/Conjunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
bridge/doctrine-phpcr-odm/lib/PhpcrOdmAgent.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/AgentInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/AgentFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Query/Comparison.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
bridge/doctrine-phpcr-odm/tests/Functional/PhpcrOdmExtension.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.