Failed Conditions
Push — develop ( 9800ca...d1cf9a )
by Marco
272:19 queued 264:21
created
lib/Doctrine/ORM/Query/Printer.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;
6 6
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function startProduction($name)
52 52
     {
53
-        $this->println('(' . $name);
53
+        $this->println('('.$name);
54 54
         $this->indent++;
55 55
     }
56 56
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/FilterCollection.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;
6 6
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * A filter object is in CLEAN state when it has no changed parameters.
20 20
      */
21
-    const FILTERS_STATE_CLEAN  = 1;
21
+    const FILTERS_STATE_CLEAN = 1;
22 22
 
23 23
     /**
24 24
      * A filter object is in DIRTY state when it has changed parameters.
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public function enable($name)
90 90
     {
91 91
         if ( ! $this->has($name)) {
92
-            throw new \InvalidArgumentException("Filter '" . $name . "' does not exist.");
92
+            throw new \InvalidArgumentException("Filter '".$name."' does not exist.");
93 93
         }
94 94
 
95 95
         if ( ! $this->isEnabled($name)) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public function getFilter($name)
142 142
     {
143 143
         if ( ! $this->isEnabled($name)) {
144
-            throw new \InvalidArgumentException("Filter '" . $name . "' is not enabled.");
144
+            throw new \InvalidArgumentException("Filter '".$name."' is not enabled.");
145 145
         }
146 146
 
147 147
         return $this->enabledFilters[$name];
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $filterHash = '';
195 195
 
196 196
         foreach ($this->enabledFilters as $name => $filter) {
197
-            $filterHash .= $name . $filter;
197
+            $filterHash .= $name.$filter;
198 198
         }
199 199
 
200 200
         return $filterHash;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Filter/SQLFilter.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\Filter;
6 6
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
      */
86 86
     final public function getParameter($name)
87 87
     {
88
-        if (!isset($this->parameters[$name])) {
89
-            throw new \InvalidArgumentException("Parameter '" . $name . "' does not exist.");
88
+        if ( ! isset($this->parameters[$name])) {
89
+            throw new \InvalidArgumentException("Parameter '".$name."' does not exist.");
90 90
         }
91 91
 
92 92
         return $this->em->getConnection()->quote($this->parameters[$name]['value'], $this->parameters[$name]['type']);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     final public function hasParameter($name)
103 103
     {
104
-        if (!isset($this->parameters[$name])) {
104
+        if ( ! isset($this->parameters[$name])) {
105 105
             return false;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/TreeWalkerChainIterator.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/Expr/Select.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/Comparison.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
 
@@ -80,6 +80,6 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function __toString()
82 82
     {
83
-        return $this->leftExpr . ' ' . $this->operator . ' ' . $this->rightExpr;
83
+        return $this->leftExpr.' '.$this->operator.' '.$this->rightExpr;
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/GroupBy.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
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * @var string
20 20
      */
21
-    protected $preSeparator  = '';
21
+    protected $preSeparator = '';
22 22
 
23 23
     /**
24 24
      * @var string
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Base.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 add($arg)
73 73
     {
74
-        if ( $arg !== null && (!$arg instanceof self || $arg->count() > 0) ) {
74
+        if ($arg !== null && ( ! $arg instanceof self || $arg->count() > 0)) {
75 75
             // If we decide to keep Expr\Base instances, we can use this check
76 76
             if ( ! is_string($arg)) {
77 77
                 $class = get_class($arg);
@@ -104,6 +104,6 @@  discard block
 block discarded – undo
104 104
             return (string) $this->parts[0];
105 105
         }
106 106
 
107
-        return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator;
107
+        return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator;
108 108
     }
109 109
 }
Please login to merge, or discard this patch.
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.