Passed
Push — master ( f502a6...018a81 )
by Aimeos
03:11
created
src/Criteria/Base.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -252,8 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
 		if( in_array( $op, $operators['combine'], true ) ) {
254 254
 			return $this->createCombineExpression( $op, (array) $value );
255
-		}
256
-		else if( in_array( $op, $operators['compare'], true ) ) {
255
+		} else if( in_array( $op, $operators['compare'], true ) ) {
257 256
 			return $this->createCompareExpression( $op, (array) $value );
258 257
 		}
259 258
 
@@ -307,11 +306,9 @@  discard block
 block discarded – undo
307 306
 
308 307
 			if( in_array( $op, $operators['combine'], true ) ) {
309 308
 				$results[] = $this->createCombineExpression( $op, (array) $entry[$op] );
310
-			}
311
-			else if( in_array( $op, $operators['compare'], true ) ) {
309
+			} else if( in_array( $op, $operators['compare'], true ) ) {
312 310
 				$results[] = $this->createCompareExpression( $op, (array) $entry[$op] );
313
-			}
314
-			else {
311
+			} else {
315 312
 				throw new \Aimeos\Base\Exception( sprintf( 'Invalid operator "%1$s"', $op ) );
316 313
 			}
317 314
 		}
Please login to merge, or discard this patch.