Test Failed
Push — master ( ddf58a...28c77f )
by Jinyun
02:16
created
src/leetcode/EvaluateReversePolishNotation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
                 $stack->push($stack->pop() * $stack->pop());
23 23
             } elseif ($token === '/') {
24 24
                 [$b, $a] = [$stack->pop(), $stack->pop()];
25
-                $stack->push((int)($a / $b));
25
+                $stack->push((int) ($a / $b));
26 26
             } else {
27
-                $stack->push((int)$token);
27
+                $stack->push((int) $token);
28 28
             }
29 29
         }
30 30
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $stack = [];
40 40
         foreach ($tokens as $token) {
41 41
             if (!in_array($token, ['+', '-', '*', '/'])) {
42
-                array_push($stack, (int)$token);
42
+                array_push($stack, (int) $token);
43 43
             } else {
44 44
                 [$r, $l] = [array_pop($stack), array_pop($stack)];
45 45
                 if ($token === '+') {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 } elseif ($token === '*') {
50 50
                     array_push($stack, $l * $r);
51 51
                 } else {
52
-                    array_push($stack, (int)($l / $r));
52
+                    array_push($stack, (int) ($l / $r));
53 53
                 }
54 54
             }
55 55
         }
Please login to merge, or discard this patch.