Completed
Pull Request — master (#20)
by Daniel
03:37 queued 01:31
created
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.
lib/Query/Composite.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  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
 
7 7
 class Composite implements Expression
8 8
 {
9
-    const AND = 'and';
10
-    const OR = 'or';
9
+    constAND= 'and';
10
+    constOR= 'or';
11 11
 
12 12
     private static $validTypes = [
13 13
         self::AND,
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function __construct(string $type, array $expressions)
21 21
     {
22 22
         // ensure types
23
-        array_map(function (Expression $expr) {
23
+        array_map(function(Expression $expr) {
24 24
         }, $expressions);
25 25
 
26 26
         if (!in_array($type, self::$validTypes)) {
Please login to merge, or discard this patch.
bridge/doctrine-collections/tests/Functional/CollectionsAgentTest.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-collections/lib/CollectionsVisitor.php 1 patch
Spacing   +4 added lines, -4 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\Bridge\ObjectAgent\Doctrine\Collections;
6 6
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 return $this->walkComposite($expr);
46 46
         }
47 47
 
48
-        throw new \RuntimeException('Unknown Expression: ' . get_class($expr));
48
+        throw new \RuntimeException('Unknown Expression: '.get_class($expr));
49 49
     }
50 50
 
51 51
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         }
97 97
 
98
-        throw new \RuntimeException('Unknown comparator: ' . $comparison->getComparator());
98
+        throw new \RuntimeException('Unknown comparator: '.$comparison->getComparator());
99 99
     }
100 100
 
101 101
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $ormExpressions[] = $this->dispatch($childExpression);
111 111
         }
112 112
 
113
-        $method = $expression->getType() == Composite::AND ? 'andX' : 'orX';
113
+        $method = $expression->getType() == Composite::AND? 'andX' : 'orX';
114 114
 
115 115
         return call_user_func_array([$this->expressionBuilder, $method], $ormExpressions);
116 116
     }
Please login to merge, or discard this patch.
lib/Exception/BadMethodCallException.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         throw new self(sprintf(
25 25
             'Comparison "%s" is not supported.',
26
-             $comparison
26
+                $comparison
27 27
         ));
28 28
     }
29 29
 }
Please login to merge, or discard this 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-collections/lib/Store.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\Bridge\ObjectAgent\Doctrine\Collections;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     public function addCollection($classFqn, array $collection)
21 21
     {
22
-        array_map(function ($object) use ($classFqn) {
22
+        array_map(function($object) use ($classFqn) {
23 23
             if (get_class($object) !== $classFqn) {
24 24
                 throw new \InvalidArgumentException(sprintf(
25 25
                     'All objects in collection must be of class "%s", got "%s"',
Please login to merge, or discard this patch.
bridge/doctrine-collections/lib/CollectionsAgent.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.