@@ -252,8 +252,7 @@ discard block |
||
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 |
||
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 | } |