Completed
Push — master ( c80778...41555d )
by Martijn
02:09
created
src/Vanderlee/Comprehend/Directive/Prefer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@
 block discarded – undo
63 63
         switch ($this->preference) {
64 64
             default:
65 65
             case self::FIRST:
66
-                return (string)$this->parser;
66
+                return (string) $this->parser;
67 67
             case self::LONGEST:
68
-                return 'longest-of' . (string)$this->parser;
68
+                return 'longest-of' . (string) $this->parser;
69 69
             case self::SHORTEST:
70
-                return 'shortest-of' . (string)$this->parser;
70
+                return 'shortest-of' . (string) $this->parser;
71 71
         }
72 72
     }
73 73
 
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Directive/CaseSensitive.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function __construct($sensitivity, $parser)
35 35
     {
36 36
         $this->parser      = self::getArgument($parser);
37
-        $this->sensitivity = (bool)$sensitivity;
37
+        $this->sensitivity = (bool) $sensitivity;
38 38
     }
39 39
 
40 40
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/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/Vanderlee/Comprehend/Library/Rfc3986.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -102,21 +102,21 @@
 block discarded – undo
102 102
                 ['::', repeat(5, 5, [$this->h16, ':']), $this->ls32],
103 103
                 [opt($this->h16), '::', repeat(4, 4, [$this->h16, ':']), $this->ls32],
104 104
                 [
105
-                    opt([repeat(0, 1, [$this->h16, ':',]), $this->h16]),
105
+                    opt([repeat(0, 1, [$this->h16, ':', ]), $this->h16]),
106 106
                     '::',
107 107
                     repeat(3, 3, [$this->h16, ':']),
108 108
                     $this->ls32
109 109
                 ],
110 110
                 [
111
-                    opt([repeat(0, 2, [$this->h16, ':',]), $this->h16]),
111
+                    opt([repeat(0, 2, [$this->h16, ':', ]), $this->h16]),
112 112
                     '::',
113 113
                     repeat(2, 2, [$this->h16, ':']),
114 114
                     $this->ls32
115 115
                 ],
116
-                [opt([repeat(0, 3, [$this->h16, ':',]), $this->h16]), '::', $this->h16, ':', $this->ls32],
117
-                [opt([repeat(0, 4, [$this->h16, ':',]), $this->h16]), '::', $this->ls32],
118
-                [opt([repeat(0, 5, [$this->h16, ':',]), $this->h16]), '::', $this->h16],
119
-                [opt([repeat(0, 6, [$this->h16, ':',]), $this->h16]), '::']
116
+                [opt([repeat(0, 3, [$this->h16, ':', ]), $this->h16]), '::', $this->h16, ':', $this->ls32],
117
+                [opt([repeat(0, 4, [$this->h16, ':', ]), $this->h16]), '::', $this->ls32],
118
+                [opt([repeat(0, 5, [$this->h16, ':', ]), $this->h16]), '::', $this->h16],
119
+                [opt([repeat(0, 6, [$this->h16, ':', ]), $this->h16]), '::']
120 120
             ),
121 121
             'dec_octet' => c(
122 122
                 ['25', range('0', '5')], // 250-255
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function __toString()
58 58
     {
59 59
         /** @noinspection HtmlUnknownTag */
60
-        return $this->parser ? (string)$this->parser : '<undefined>';
60
+        return $this->parser ? (string) $this->parser : '<undefined>';
61 61
     }
62 62
 
63 63
 }
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/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/Structure/Sequence.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $total = 0;
33 33
         /** @var Parser $parser */
34 34
         foreach ($this->parsers as $parser) {
35
-           if ($total > 0) {
35
+            if ($total > 0) {
36 36
                 $skip = $context->skipSpacing($input, $offset + $total);
37 37
                 if ($skip === false) {
38 38
                     return $this->failure($input, $offset, $total);
Please login to merge, or discard this patch.