Completed
Push — master ( 136f42...6ae274 )
by Michal
02:50
created
src/Expression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Expressions/Binary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Expressions/Number.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Expressions/Parenthesis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Expressions/Operator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Expressions/Variable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Expressions/Ternary.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
         return true;
30 30
     }
31 31
 
32
-    public function operateTernary(\SimpleMath\Stack $stack, $variables=array()) {
32
+    public function operateTernary(\SimpleMath\Stack $stack, $variables = array()) {
33 33
         $right = $stack->pop()->operate($stack, $variables);
34 34
         $left = $stack->pop()->operate($stack, $variables);
35 35
         return array($left, $right);
36 36
     }
37 37
 
38
-    public function operate(\SimpleMath\Stack $stack, $variables=array()) {
39
-        if (! $this->isOpen()) {
38
+    public function operate(\SimpleMath\Stack $stack, $variables = array()) {
39
+        if (!$this->isOpen()) {
40 40
             throw new \RuntimeException('Mismatched ternary operator!');
41 41
         } else {
42 42
             $right = $stack->pop();
Please login to merge, or discard this patch.