Test Setup Failed
Push — master ( d54cec...c80620 )
by Martijn
02:09
created
src/Vanderlee/Comprehend/Parser/Terminal/Set.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         }
39 39
 
40 40
         $this->set     = count_chars($set, 3);
41
-        $this->include = (bool)$include;
41
+        $this->include = (bool) $include;
42 42
     }
43 43
 
44 44
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Terminal/Range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $this->first = $first === null ? null : self::parseCharacter($first);
29 29
         $this->last  = $last === null ? null : self::parseCharacter($last);
30
-        $this->in    = (bool)$in;
30
+        $this->in    = (bool) $in;
31 31
     }
32 32
 
33 33
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/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/Vanderlee/Comprehend/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/Vanderlee/Comprehend/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/Vanderlee/Comprehend/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($case_sensitive = true)
10 10
     {
11
-        array_push($this->case_sensitivity, (bool)$case_sensitive);
11
+        array_push($this->case_sensitivity, (bool) $case_sensitive);
12 12
     }
13 13
 
14 14
     public function popCaseSensitivity()
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Structure/Repeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             if ($skip !== false) {
63 63
                 $match = $this->parser->parse($input, $offset + $length + $skip, $context);
64 64
                 if ($match instanceof Success) {
65
-                    $length          += $skip + $match->length;
65
+                    $length += $skip + $match->length;
66 66
                     $child_matches[] = $match;
67 67
                 }
68 68
             }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Library/Rfc3986.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,21 +103,21 @@
 block discarded – undo
103 103
                 ['::', repeat(5, 5, [$this->h16, ':']), $this->ls32],
104 104
                 [opt($this->h16), '::', repeat(4, 4, [$this->h16, ':']), $this->ls32],
105 105
                 [
106
-                    opt([repeat(0, 1, [$this->h16, ':',]), $this->h16]),
106
+                    opt([repeat(0, 1, [$this->h16, ':', ]), $this->h16]),
107 107
                     '::',
108 108
                     repeat(3, 3, [$this->h16, ':']),
109 109
                     $this->ls32
110 110
                 ],
111 111
                 [
112
-                    opt([repeat(0, 2, [$this->h16, ':',]), $this->h16]),
112
+                    opt([repeat(0, 2, [$this->h16, ':', ]), $this->h16]),
113 113
                     '::',
114 114
                     repeat(2, 2, [$this->h16, ':']),
115 115
                     $this->ls32
116 116
                 ],
117
-                [opt([repeat(0, 3, [$this->h16, ':',]), $this->h16]), '::', $this->h16, ':', $this->ls32],
118
-                [opt([repeat(0, 4, [$this->h16, ':',]), $this->h16]), '::', $this->ls32],
119
-                [opt([repeat(0, 5, [$this->h16, ':',]), $this->h16]), '::', $this->h16],
120
-                [opt([repeat(0, 6, [$this->h16, ':',]), $this->h16]), '::']
117
+                [opt([repeat(0, 3, [$this->h16, ':', ]), $this->h16]), '::', $this->h16, ':', $this->ls32],
118
+                [opt([repeat(0, 4, [$this->h16, ':', ]), $this->h16]), '::', $this->ls32],
119
+                [opt([repeat(0, 5, [$this->h16, ':', ]), $this->h16]), '::', $this->h16],
120
+                [opt([repeat(0, 6, [$this->h16, ':', ]), $this->h16]), '::']
121 121
             ),
122 122
             'dec_octet'     => c(
123 123
                 ['25', range('0', '5')], // 250-255
Please login to merge, or discard this patch.