Completed
Pull Request — master (#6)
by Daniel
10:48 queued 08:49
created
bridge/doctrine-collections/lib/CollectionsVisitor.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     private $expressionBuilder;
22 22
 
23 23
     /**
24
-     * @param QueryBuilder $expressionBuilder
24
+     * @param ExpressionBuilder $expressionBuilder
25 25
      */
26 26
     public function __construct(ExpressionBuilder $expressionBuilder)
27 27
     {
@@ -32,7 +32,6 @@  discard block
 block discarded – undo
32 32
      * Walk the given expression to build up the PHPCR-ODM query builder.
33 33
      *
34 34
      * @param Expression $expr
35
-     * @param AbstractNode|null $parentNode
36 35
      */
37 36
     public function dispatch(Expression $expr)
38 37
     {
Please login to merge, or discard this 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 1 patch
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.
bridge/doctrine-collections/tests/Functional/CollectionsVisitorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             [
107 107
                 'null',
108 108
                 null,
109
-                function ($expr) {
109
+                function($expr) {
110 110
                     $this->assertEquals('=', $expr->getOperator());
111 111
                     $this->assertNull($expr->getValue()->getValue());
112 112
                 },
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             [
115 115
                 'in',
116 116
                 [1, 2, 3],
117
-                function ($expr) {
117
+                function($expr) {
118 118
                     $this->assertEquals('IN', $expr->getOperator());
119 119
                     $this->assertEquals([1, 2, 3], $expr->getValue()->getValue());
120 120
                 },
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             [
123 123
                 'nin',
124 124
                 [1, 2, 3],
125
-                function ($expr) {
125
+                function($expr) {
126 126
                     $this->assertEquals('NIN', $expr->getOperator());
127 127
                     $this->assertEquals([1, 2, 3], $expr->getValue()->getValue());
128 128
                 },
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.