@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function evaluate($string) |
| 25 | 25 | { |
| 26 | - $string = '<?php ' . $string; |
|
| 26 | + $string = '<?php '.$string; |
|
| 27 | 27 | $comparison1 = $comparison2 = ''; |
| 28 | 28 | $operator = null; |
| 29 | 29 | $tokens = token_get_all($string); |
@@ -49,10 +49,14 @@ |
||
| 49 | 49 | |
| 50 | 50 | if ($operator === null) { |
| 51 | 51 | $isTrue = in_array($comparison1, $this->reservedTrue); |
| 52 | - if ($isTrue) return true; |
|
| 52 | + if ($isTrue) { |
|
| 53 | + return true; |
|
| 54 | + } |
|
| 53 | 55 | |
| 54 | 56 | $isFalse = in_array($comparison1, $this->reservedFalse); |
| 55 | - if ($isFalse) return false; |
|
| 57 | + if ($isFalse) { |
|
| 58 | + return false; |
|
| 59 | + } |
|
| 56 | 60 | |
| 57 | 61 | return (boolean)$comparison1; |
| 58 | 62 | } else { |