Passed
Pull Request — master (#301)
by
unknown
05:15
created
src/IMAP/Query/WhereQuery.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
                 }
125 125
                 return $this->where($key, $value);
126 126
             }
127
-        }else{
127
+        } else{
128 128
             $criteria = $this->validate_criteria($criteria);
129 129
             $value = $this->parse_value($value);
130 130
 
131 131
             if($value === null || $value === ''){
132 132
                 $this->query->push([$criteria]);
133
-            }else{
133
+            } else{
134 134
                 $this->query->push([$criteria, $value]);
135 135
             }
136 136
         }
@@ -145,7 +145,9 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function orWhere(\Closure $closure = null) {
147 147
         $this->query->push(['OR']);
148
-        if($closure !== null) $closure($this);
148
+        if($closure !== null) {
149
+            $closure($this);
150
+        }
149 151
 
150 152
         return $this;
151 153
     }
@@ -157,7 +159,9 @@  discard block
 block discarded – undo
157 159
      */
158 160
     public function andWhere(\Closure $closure = null) {
159 161
         $this->query->push(['AND']);
160
-        if($closure !== null) $closure($this);
162
+        if($closure !== null) {
163
+            $closure($this);
164
+        }
161 165
 
162 166
         return $this;
163 167
     }
Please login to merge, or discard this patch.