Passed
Push — master ( dae2b6...a0c960 )
by Martijn
12:49
created
src/Directive/Space.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     public function __toString()
51 51
     {
52
-        return (string)$this->parser;
52
+        return (string) $this->parser;
53 53
     }
54 54
 
55 55
 }
Please login to merge, or discard this patch.
src/Parser/Output/ResultTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function setResult($key = null, $value = null)
34 34
     {
35
-        $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) {
35
+        $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) {
36 36
             if (is_callable($value)) {
37 37
                 $text = $value($text);
38 38
             } elseif ($value !== null) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function concatResult($key = null, $value = null)
57 57
     {
58
-        $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) {
58
+        $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) {
59 59
             if (is_callable($value)) {
60 60
                 $text = $value($text);
61 61
             } elseif ($value !== null) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             }
64 64
 
65 65
             if (!isset($results[$key])) {
66
-                $results[$key] = (string)$text;
66
+                $results[$key] = (string) $text;
67 67
             } elseif (is_array($results[$key])) {
68 68
                 $results[$key][] = array_pop($results[$key]) . $text;
69 69
             } else {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function pushResult($key = null, $value = null)
85 85
     {
86
-        $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) {
86
+        $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) {
87 87
             if (is_callable($value)) {
88 88
                 $text = $value($text);
89 89
             } elseif ($value !== null) {
Please login to merge, or discard this patch.
src/Parser/Output/AssignTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function assignTo(&$variable)
38 38
     {
39
-        $this->assignCallbacks[] = function ($text) use (&$variable) {
39
+        $this->assignCallbacks[] = function($text) use (&$variable) {
40 40
             $variable = $text;
41 41
         };
42 42
 
Please login to merge, or discard this patch.
src/Parser/Terminal/Regex.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
 
51 51
     public function __toString()
52 52
     {
53
-        return (string)$this->pattern;
53
+        return (string) $this->pattern;
54 54
     }
55 55
 
56 56
 }
Please login to merge, or discard this patch.
src/Core/ArgumentsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      */
98 98
     protected static function getArguments($arguments, $arrayToSequence = true)
99 99
     {
100
-        return array_map(function ($argument) use ($arrayToSequence) {
100
+        return array_map(function($argument) use ($arrayToSequence) {
101 101
             return self::getArgument($argument, $arrayToSequence);
102 102
         }, $arguments);
103 103
     }
Please login to merge, or discard this patch.
src/Parser/Terminal/Range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             ? null
36 36
             : self::parseCharacter($last);
37 37
 
38
-        $this->in = (bool)$in;
38
+        $this->in = (bool) $in;
39 39
     }
40 40
 
41 41
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Parser/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $success = new Success($length, $successes);
105 105
 
106 106
         // ResultTrait
107
-        $success->addResultCallback(function (&$results) use ($input, $offset, $length) {
107
+        $success->addResultCallback(function(&$results) use ($input, $offset, $length) {
108 108
             $text = substr($input, $offset, $length);
109 109
 
110 110
             $this->resolveResultCallbacks($results, $text);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         // AssignTrait
114 114
         $callbacks = $this->callbacks;
115
-        $success->addCustomCallback(function () use ($input, $offset, $length, $callbacks) {
115
+        $success->addCustomCallback(function() use ($input, $offset, $length, $callbacks) {
116 116
             $text = substr($input, $offset, $length);
117 117
 
118 118
             $this->resolveAssignCallbacks($text);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         });
124 124
 
125 125
         // TokenTrait
126
-        $success->setTokenCallback(function (&$children) use ($input, $offset, $length) {
126
+        $success->setTokenCallback(function(&$children) use ($input, $offset, $length) {
127 127
             return $this->resolveToken($input, $offset, $length, $children, get_class($this));
128 128
         });
129 129
 
Please login to merge, or discard this patch.
src/Core/Context/CaseSensitiveContextTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     public function pushCaseSensitivity($caseSensitive = true)
10 10
     {
11
-        $this->caseSensitivity[] = (bool)$caseSensitive;
11
+        $this->caseSensitivity[] = (bool) $caseSensitive;
12 12
     }
13 13
 
14 14
     public function popCaseSensitivity()
Please login to merge, or discard this patch.
src/Directive/CaseSensitive.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function __construct($sensitivity, $parser)
33 33
     {
34 34
         $this->parser = self::getArgument($parser);
35
-        $this->sensitivity = (bool)$sensitivity;
35
+        $this->sensitivity = (bool) $sensitivity;
36 36
     }
37 37
 
38 38
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.