Test Setup Failed
Push — master ( 93b5d2...96bf95 )
by Martijn
04:09 queued 01:48
created
src/autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-spl_autoload_register(function ($class) {
3
+spl_autoload_register(function($class) {
4 4
     $file = __DIR__ . DIRECTORY_SEPARATOR . $class . '.php';
5 5
 	if (!class_exists($class) && is_file($file)) {
6 6
         /** @noinspection PhpIncludeInspection */
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
@@ -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/Implementation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         if ($match->match && !empty($this->definition->processors)) {
96 96
             foreach ($this->definition->processors as $key => $processor) {
97
-                $match->addResultCallback(function (&$results) use ($key, $processor, $localResults) {
97
+                $match->addResultCallback(function(&$results) use ($key, $processor, $localResults) {
98 98
                     $results[$key] = $processor($localResults, $results);
99 99
                 });
100 100
             }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             // ignore
113 113
         }
114 114
 
115
-        return (string)$this->parser;
115
+        return (string) $this->parser;
116 116
     }
117 117
 
118 118
 }
Please login to merge, or discard this patch.