Completed
Push — master ( 994cc4...4e273d )
by Ilias
09:52 queued 06:32
created
src/CondParse/Lexer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         return sprintf(
31 31
             '/%s/Si',
32 32
             join('|',
33
-                array_map(function ($key, $value) {
33
+                array_map(function($key, $value) {
34 34
                     return sprintf('(?P<%s>%s)', $key, $value);
35 35
                 }, array_keys($tokenMap->getTokens()), $tokenMap->getTokens())
36 36
             )
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     protected function extractMatch($matches)
90 90
     {
91
-        $matches = array_filter($matches, function ($value, $key) {
91
+        $matches = array_filter($matches, function($value, $key) {
92 92
             return is_string($key) && !empty($value);
93 93
         }, ARRAY_FILTER_USE_BOTH);
94 94
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,8 @@
 block discarded – undo
78 78
      * @param TokenMap $tokenMap
79 79
      * @return \Traversable <string>
80 80
      */
81
-    public function getTokenStream($conditionString, TokenMap $tokenMap) {
81
+    public function getTokenStream($conditionString, TokenMap $tokenMap)
82
+    {
82 83
         return $this->getTokenStreamWithRegex($conditionString, $this->buildRegex($tokenMap));
83 84
     }
84 85
 
Please login to merge, or discard this patch.
src/CondParse/TokenParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             return;
45 45
         }
46 46
 
47
-        while (! $operatorStack->isEmpty() && $tokenMap->compareOperatorPrecedence($token, $operatorStack->top()[0]) <= 0) {
47
+        while (!$operatorStack->isEmpty() && $tokenMap->compareOperatorPrecedence($token, $operatorStack->top()[0]) <= 0) {
48 48
             $this->pushOperand($operandStack, $operatorStack, $tokenMap);
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/CondParse/Operand/NotOperand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /** @return bool */
15 15
     function execute()
16 16
     {
17
-        return ! $this->containedOperand->execute();
17
+        return !$this->containedOperand->execute();
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
src/CondParse/Operand/BooleanOperand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 
17 17
     public function __toString()
18 18
     {
19
-        return (string)$this->token;
19
+        return (string) $this->token;
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/CondParse/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $this->tokenParser->parseToken($token, $value, $operandStack, $operatorStack, $tokenMap);
34 34
         }
35 35
 
36
-        while (! $operatorStack->isEmpty()) {
36
+        while (!$operatorStack->isEmpty()) {
37 37
             $this->tokenParser->pushOperand($operandStack, $operatorStack, $tokenMap);
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/CondParse/TokenMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             ));
100 100
         }
101 101
 
102
-        if (! is_subclass_of($class, OperandInterface::class)) {
102
+        if (!is_subclass_of($class, OperandInterface::class)) {
103 103
             throw new TokenMapException(sprintf(
104 104
                 'Token <%s> with class <%s> must implement OperandInterface', $name, $class
105 105
             ));
Please login to merge, or discard this patch.