Failed Conditions
Push — develop ( c47956...348e78 )
by Marco
17s
created
lib/Doctrine/ORM/Query/Expr/OrderBy.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 Doctrine\ORM\Query\Expr;
6 6
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function add($sort, $order = null)
61 61
     {
62 62
         $order = ! $order ? 'ASC' : $order;
63
-        $this->parts[] = $sort . ' '. $order;
63
+        $this->parts[] = $sort.' '.$order;
64 64
     }
65 65
 
66 66
     /**
@@ -84,6 +84,6 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function __toString()
86 86
     {
87
-        return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator;
87
+        return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator;
88 88
     }
89 89
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/From.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 Doctrine\ORM\Query\Expr;
6 6
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function __toString()
73 73
     {
74
-        return $this->from . ' ' . $this->alias .
75
-                ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '');
74
+        return $this->from.' '.$this->alias.
75
+                ($this->indexBy ? ' INDEX BY '.$this->indexBy : '');
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Func.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 Doctrine\ORM\Query\Expr;
6 6
 
@@ -58,6 +58,6 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function __toString()
60 60
     {
61
-        return $this->name . '(' . implode(', ', $this->arguments) . ')';
61
+        return $this->name.'('.implode(', ', $this->arguments).')';
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Andx.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 Doctrine\ORM\Query\Expr;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Join.php 1 patch
Spacing   +5 added lines, -5 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 Doctrine\ORM\Query\Expr;
6 6
 
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function __toString()
124 124
     {
125
-        return strtoupper($this->joinType) . ' JOIN ' . $this->join
126
-             . ($this->alias ? ' ' . $this->alias : '')
127
-             . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '')
128
-             . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : '');
125
+        return strtoupper($this->joinType).' JOIN '.$this->join
126
+             . ($this->alias ? ' '.$this->alias : '')
127
+             . ($this->indexBy ? ' INDEX BY '.$this->indexBy : '')
128
+             . ($this->condition ? ' '.strtoupper($this->conditionType).' '.$this->condition : '');
129 129
     }
130 130
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Math.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 Doctrine\ORM\Query\Expr;
6 6
 
@@ -77,16 +77,16 @@  discard block
 block discarded – undo
77 77
         $leftExpr = (string) $this->leftExpr;
78 78
 
79 79
         if ($this->leftExpr instanceof Math) {
80
-            $leftExpr = '(' . $leftExpr . ')';
80
+            $leftExpr = '('.$leftExpr.')';
81 81
         }
82 82
 
83 83
         // Adjusting Right Expression
84 84
         $rightExpr = (string) $this->rightExpr;
85 85
 
86 86
         if ($this->rightExpr instanceof Math) {
87
-            $rightExpr = '(' . $rightExpr . ')';
87
+            $rightExpr = '('.$rightExpr.')';
88 88
         }
89 89
 
90
-        return $leftExpr . ' ' . $this->operator . ' ' . $rightExpr;
90
+        return $leftExpr.' '.$this->operator.' '.$rightExpr;
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Composite.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 Doctrine\ORM\Query\Expr;
6 6
 
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
         $queryPart = (string) $part;
44 44
 
45 45
         if (is_object($part) && $part instanceof self && $part->count() > 1) {
46
-            return $this->preSeparator . $queryPart . $this->postSeparator;
46
+            return $this->preSeparator.$queryPart.$this->postSeparator;
47 47
         }
48 48
 
49 49
         // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND")
50 50
         if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) {
51
-            return $this->preSeparator . $queryPart . $this->postSeparator;
51
+            return $this->preSeparator.$queryPart.$this->postSeparator;
52 52
         }
53 53
 
54 54
         return $queryPart;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Parameter.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 Doctrine\ORM\Query;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/TreeWalkerChain.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 Doctrine\ORM\Query;
6 6
 
Please login to merge, or discard this patch.