@@ -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; |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | protected $precidence = 1; |
| 26 | 26 | protected $leftAssoc = false; |
| 27 | 27 | |
| 28 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) { |
|
| 29 | - if (! $this->isOpen()) { |
|
| 28 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) { |
|
| 29 | + if (!$this->isOpen()) { |
|
| 30 | 30 | $right = $stack->pop()->operate($stack, $variables); |
| 31 | 31 | $left = $stack->pop()->operate($stack, $variables); |
| 32 | 32 | return new TernaryIntermediate(array($left, $right)); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected $precidence = 3; |
| 26 | 26 | |
| 27 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) |
|
| 27 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) |
|
| 28 | 28 | { |
| 29 | 29 | $right = $stack->pop()->operate($stack, $variables); |
| 30 | 30 | $left = $stack->pop()->operate($stack, $variables); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected $precidence = 4; |
| 26 | 26 | |
| 27 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) { |
|
| 27 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) { |
|
| 28 | 28 | $left = $stack->pop()->operate($stack, $variables); |
| 29 | 29 | $right = $stack->pop(); |
| 30 | 30 | $right = ($right ? $right->operate($stack, $variables) : 0); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected $precidence = 4; |
| 26 | 26 | |
| 27 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) { |
|
| 27 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) { |
|
| 28 | 28 | $left = $stack->pop()->operate($stack, $variables); |
| 29 | 29 | $right = $stack->pop(); |
| 30 | 30 | $right = ($right ? $right->operate($stack, $variables) : 0); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected $precidence = 3; |
| 26 | 26 | |
| 27 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) |
|
| 27 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) |
|
| 28 | 28 | { |
| 29 | 29 | $right = $stack->pop()->operate($stack, $variables); |
| 30 | 30 | $left = $stack->pop()->operate($stack, $variables); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected $precidence = 4; |
| 26 | 26 | |
| 27 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) { |
|
| 27 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) { |
|
| 28 | 28 | $left = $stack->pop()->operate($stack, $variables); |
| 29 | 29 | $right = $stack->pop(); |
| 30 | 30 | $right = ($right ? $right->operate($stack, $variables) : 0); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected $precidence = 4; |
| 26 | 26 | |
| 27 | - public function operate(\SimpleMath\Stack $stack, $variables=array()) { |
|
| 27 | + public function operate(\SimpleMath\Stack $stack, $variables = array()) { |
|
| 28 | 28 | $left = $stack->pop()->operate($stack, $variables); |
| 29 | 29 | $right = $stack->pop(); |
| 30 | 30 | $right = ($right ? $right->operate($stack, $variables) : 0); |