Test Setup Failed
Push — master ( 96bf95...c80778 )
by Martijn
02:10
created
src/Vanderlee/Comprehend/Library/Rfc3986.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@
 block discarded – undo
100 100
                 [repeat(6, 6, [$this->h16, ':']), $this->ls32],
101 101
                 ['::', repeat(5, 5, [$this->h16, ':']), $this->ls32],
102 102
                 [opt($this->h16), '::', repeat(4, 4, [$this->h16, ':']), $this->ls32],
103
-                [opt([repeat(0, 1, [$this->h16, ':',]), $this->h16]), '::', repeat(3, 3, [$this->h16, ':']), $this->ls32],
104
-                [opt([repeat(0, 2, [$this->h16, ':',]), $this->h16]), '::', repeat(2, 2, [$this->h16, ':']), $this->ls32],
105
-                [opt([repeat(0, 3, [$this->h16, ':',]), $this->h16]), '::', $this->h16, ':', $this->ls32],
106
-                [opt([repeat(0, 4, [$this->h16, ':',]), $this->h16]), '::', $this->ls32],
107
-                [opt([repeat(0, 5, [$this->h16, ':',]), $this->h16]), '::', $this->h16],
108
-                [opt([repeat(0, 6, [$this->h16, ':',]), $this->h16]), '::']
103
+                [opt([repeat(0, 1, [$this->h16, ':', ]), $this->h16]), '::', repeat(3, 3, [$this->h16, ':']), $this->ls32],
104
+                [opt([repeat(0, 2, [$this->h16, ':', ]), $this->h16]), '::', repeat(2, 2, [$this->h16, ':']), $this->ls32],
105
+                [opt([repeat(0, 3, [$this->h16, ':', ]), $this->h16]), '::', $this->h16, ':', $this->ls32],
106
+                [opt([repeat(0, 4, [$this->h16, ':', ]), $this->h16]), '::', $this->ls32],
107
+                [opt([repeat(0, 5, [$this->h16, ':', ]), $this->h16]), '::', $this->h16],
108
+                [opt([repeat(0, 6, [$this->h16, ':', ]), $this->h16]), '::']
109 109
             ),
110 110
             'dec_octet'     => c(
111 111
                 ['25', range('0', '5')], // 250-255
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/Core/ArgumentsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     protected static function getArguments($arguments, $arrayToSequence = true)
55 55
     {
56
-        return array_map(function ($argument) use ($arrayToSequence) {
56
+        return array_map(function($argument) use ($arrayToSequence) {
57 57
             return self::getArgument($argument, $arrayToSequence);
58 58
         }, $arguments);
59 59
     }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $success = new Success($length, $successes);
99 99
 
100 100
         // ResultTrait
101
-        $success->addResultCallback(function (&$results) use ($input, $offset, $length) {
101
+        $success->addResultCallback(function(&$results) use ($input, $offset, $length) {
102 102
             $text = substr($input, $offset, $length);
103 103
 
104 104
             $this->resolveResultCallbacks($results, $text);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         // AssignTrait
108 108
         $callbacks = $this->callbacks;
109
-        $success->addCustomCallback(function () use ($input, $offset, $length, $callbacks) {
109
+        $success->addCustomCallback(function() use ($input, $offset, $length, $callbacks) {
110 110
             $text = substr($input, $offset, $length);
111 111
 
112 112
             $this->resolveAssignCallbacks($text);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         });
118 118
 
119 119
         // TokenTrait
120
-        $success->setTokenCallback(function (&$children) use ($input, $offset, $length) {
120
+        $success->setTokenCallback(function(&$children) use ($input, $offset, $length) {
121 121
             return $this->resolveToken($input, $offset, $length, $children, get_class($this));
122 122
         });
123 123
 
Please login to merge, or discard this patch.
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/Structure/Repeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             if ($skip !== false) {
62 62
                 $match = $this->parser->parse($input, $offset + $length + $skip, $context);
63 63
                 if ($match->match) {
64
-                    $length          += $skip + $match->length;
64
+                    $length += $skip + $match->length;
65 65
                     $child_matches[] = $match;
66 66
                 }
67 67
             }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Structure/SpacingTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         if ($spacer === true) {
49 49
             $this->spacer = true;
50
-        } elseif ($spacer === null || $spacer === false ) {
50
+        } elseif ($spacer === null || $spacer === false) {
51 51
             $this->spacer = null;
52 52
         } else {
53 53
             $this->spacer = self::getArgument($spacer);
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Builder/Definition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	{
24 24
 		//@todo validate parser and validator
25 25
 		
26
-		$this->generator  = $generator;
26
+		$this->generator = $generator;
27 27
 		if (is_callable($validator)) {
28 28
             $this->validators[] = $validator;
29 29
         }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Builder/AbstractRuleset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     protected static function isRuleDefined(&$rules, $names)
139 139
     {
140
-        foreach ((array)$names as $key) {
140
+        foreach ((array) $names as $key) {
141 141
             if (!isset($rules[$key])) {
142 142
                 return false;
143 143
             }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
     protected static function undefineRule(&$rules, $names)
150 150
     {
151
-        foreach ((array)$names as $key) {
151
+        foreach ((array) $names as $key) {
152 152
             unset($rules[$key]);
153 153
         }
154 154
     }
@@ -280,6 +280,6 @@  discard block
 block discarded – undo
280 280
             // ignore
281 281
         }
282 282
 
283
-        return (string)$this->parser;
283
+        return (string) $this->parser;
284 284
     }
285 285
 }
Please login to merge, or discard this patch.