@@ -50,7 +50,7 @@ |
||
| 50 | 50 | throw new \Exception('Undefined Value ' . $value); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - abstract public function operate(Stack $stack, $variables=array()); |
|
| 53 | + abstract public function operate(Stack $stack, $variables = array()); |
|
| 54 | 54 | |
| 55 | 55 | public function isOperator() { |
| 56 | 56 | return false; |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | protected $precidence = 1; |
| 7 | 7 | protected $leftAssoc = false; |
| 8 | 8 | |
| 9 | - public function operate(Stack $stack, $variables=array()) { |
|
| 10 | - if (! $this->isOpen()) { |
|
| 9 | + public function operate(Stack $stack, $variables = array()) { |
|
| 10 | + if (!$this->isOpen()) { |
|
| 11 | 11 | $right = $stack->pop()->operate($stack, $variables); |
| 12 | 12 | $left = $stack->pop()->operate($stack, $variables); |
| 13 | 13 | return new TernaryIntermediate(array($left, $right)); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | protected $precidence = 3; |
| 7 | 7 | |
| 8 | - public function operate(Stack $stack, $variables=array()) |
|
| 8 | + public function operate(Stack $stack, $variables = array()) |
|
| 9 | 9 | { |
| 10 | 10 | $right = $stack->pop()->operate($stack, $variables); |
| 11 | 11 | $left = $stack->pop()->operate($stack, $variables); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TernaryIntermediate extends TerminalExpression { |
| 5 | 5 | |
| 6 | - public function operate(Stack $stack, $variables=array()) { |
|
| 6 | + public function operate(Stack $stack, $variables = array()) { |
|
| 7 | 7 | throw new \RuntimeException('Mismatched ternary operator!'); |
| 8 | 8 | } |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TernaryIntermediate extends TerminalExpression { |
| 5 | 5 | |
| 6 | - public function operate(Stack $stack, $variables=array()) { |
|
| 6 | + public function operate(Stack $stack, $variables = array()) { |
|
| 7 | 7 | throw new \RuntimeException('Mismatched ternary operator!'); |
| 8 | 8 | } |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TernaryIntermediate extends TerminalExpression { |
| 5 | 5 | |
| 6 | - public function operate(Stack $stack, $variables=array()) { |
|
| 6 | + public function operate(Stack $stack, $variables = array()) { |
|
| 7 | 7 | throw new \RuntimeException('Mismatched ternary operator!'); |
| 8 | 8 | } |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TernaryIntermediate extends TerminalExpression { |
| 5 | 5 | |
| 6 | - public function operate(Stack $stack, $variables=array()) { |
|
| 6 | + public function operate(Stack $stack, $variables = array()) { |
|
| 7 | 7 | throw new \RuntimeException('Mismatched ternary operator!'); |
| 8 | 8 | } |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TernaryIntermediate extends TerminalExpression { |
| 5 | 5 | |
| 6 | - public function operate(Stack $stack, $variables=array()) { |
|
| 6 | + public function operate(Stack $stack, $variables = array()) { |
|
| 7 | 7 | throw new \RuntimeException('Mismatched ternary operator!'); |
| 8 | 8 | } |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | class TernaryIntermediate extends TerminalExpression { |
| 5 | 5 | |
| 6 | - public function operate(Stack $stack, $variables=array()) { |
|
| 6 | + public function operate(Stack $stack, $variables = array()) { |
|
| 7 | 7 | throw new \RuntimeException('Mismatched ternary operator!'); |
| 8 | 8 | } |
| 9 | 9 | |