Passed
Push — master ( 23c80e...5008b1 )
by Malte
02:22
created
src/Query/WhereQuery.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             foreach ($criteria as $key => $value) {
138 138
                 if (is_numeric($key)) {
139 139
                     $this->where($value);
140
-                }else{
140
+                } else{
141 141
                     $this->where($key, $value);
142 142
                 }
143 143
             }
@@ -173,7 +173,9 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function orWhere(Closure $closure = null) {
175 175
         $this->query->push(['OR']);
176
-        if ($closure !== null) $closure($this);
176
+        if ($closure !== null) {
177
+            $closure($this);
178
+        }
177 179
 
178 180
         return $this;
179 181
     }
@@ -185,7 +187,9 @@  discard block
 block discarded – undo
185 187
      */
186 188
     public function andWhere(Closure $closure = null) {
187 189
         $this->query->push(['AND']);
188
-        if ($closure !== null) $closure($this);
190
+        if ($closure !== null) {
191
+            $closure($this);
192
+        }
189 193
 
190 194
         return $this;
191 195
     }
Please login to merge, or discard this patch.