@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | return $this->returnAsType([]); |
298 | 298 | } |
299 | 299 | |
300 | - $count = count($data) -1; |
|
300 | + $count = count($data)-1; |
|
301 | 301 | $key = array_keys($data)[$count]; |
302 | 302 | $val = array_values($data)[$count]; |
303 | 303 | |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | return $result; |
404 | 404 | } |
405 | 405 | } |
406 | - } else if($expressionParamIsValid) { |
|
406 | + } else if ($expressionParamIsValid) { |
|
407 | 407 | $backendDBApiInst = \Injector::inst()->createWithArgs( |
408 | 408 | '\JSONText\Backends\\' . $dbBackend, [ |
409 | 409 | $expression, |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | $keys = array_keys($operandAsArray); |
81 | 81 | $vals = array_values($operandAsArray); |
82 | - if (count($keys) >1 || count($vals) >1) { |
|
82 | + if (count($keys) > 1 || count($vals) > 1) { |
|
83 | 83 | $msg = 'Sorry. I can\'t handle complex operands.'; |
84 | 84 | throw new JSONTextException($msg); |
85 | 85 | } |