Passed
Push — master ( 6810a7...dae2b6 )
by Martijn
53s
created
src/Core/Token.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,16 +58,16 @@  discard block
 block discarded – undo
58 58
     private function toString($depth = 0)
59 59
     {
60 60
         $signature = ($this->group
61
-                ? $this->group.'::'
61
+                ? $this->group . '::'
62 62
                 : '')
63 63
             .($this->name
64 64
                 ? $this->name
65 65
                 : $this->class);
66 66
 
67
-        $output = str_repeat('  ', $depth)."{$signature} (`{$this->text}`)";
67
+        $output = str_repeat('  ', $depth) . "{$signature} (`{$this->text}`)";
68 68
 
69 69
         foreach ($this->children as $child) {
70
-            $output .= PHP_EOL.$child->toString($depth + 1);
70
+            $output .= PHP_EOL . $child->toString($depth + 1);
71 71
         }
72 72
 
73 73
         return $output;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $group = preg_replace('/[^-_a-zA-Z0-9]/', '_', $this->group);
109 109
 
110 110
         $element = $this->group
111
-            ? $document->createElementNS($this->group, $group.':'.$name, $value)
111
+            ? $document->createElementNS($this->group, $group . ':' . $name, $value)
112 112
             : $document->createElement($name, $value);
113 113
 
114 114
         foreach ($this->children as $child) {
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
@@ -48,6 +48,6 @@
 block discarded – undo
48 48
     {
49 49
         return ($this->sensitivity
50 50
                 ? 'case'
51
-                : 'no-case').'( '.$this->parser.' )';
51
+                : 'no-case') . '( ' . $this->parser . ' )';
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/Directive/Prefer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@
 block discarded – undo
67 67
             case self::FIRST:
68 68
                 return (string) $this->parser;
69 69
             case self::LONGEST:
70
-                return 'longest-of'.(string) $this->parser;
70
+                return 'longest-of' . (string) $this->parser;
71 71
             case self::SHORTEST:
72
-                return 'shortest-of'.(string) $this->parser;
72
+                return 'shortest-of' . (string) $this->parser;
73 73
         }
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
src/Match/Failure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return 'Failed match at '.$this->length.' characters';
21
+        return 'Failed match at ' . $this->length . ' characters';
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Match/Success.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,6 +87,6 @@
 block discarded – undo
87 87
 
88 88
     public function __toString()
89 89
     {
90
-        return 'Successfully matched '.$this->length.' characters';
90
+        return 'Successfully matched ' . $this->length . ' characters';
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
src/Parser/Structure/Repeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,6 +98,6 @@
 block discarded – undo
98 98
 
99 99
         return ($min === $max
100 100
                 ? $min
101
-                : ($min.'*'.$max)).$this->parser;
101
+                : ($min . '*' . $max)) . $this->parser;
102 102
     }
103 103
 }
Please login to merge, or discard this patch.
src/Parser/Structure/Sequence.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,6 +73,6 @@
 block discarded – undo
73 73
 
74 74
     public function __toString()
75 75
     {
76
-        return '( '.implode(' ', $this->parsers).' )';
76
+        return '( ' . implode(' ', $this->parsers) . ' )';
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
src/Parser/Structure/Not.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
 
35 35
     public function __toString()
36 36
     {
37
-        return '!'.$this->parser;
37
+        return '!' . $this->parser;
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Parser/Structure/All.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
 
46 46
     public function __toString()
47 47
     {
48
-        return '( '.implode(' + ', $this->parsers).' )';
48
+        return '( ' . implode(' + ', $this->parsers) . ' )';
49 49
     }
50 50
 }
Please login to merge, or discard this patch.