Completed
Push — master ( db8578...85f9c3 )
by Kirill
10:30
created
src/Grammar/PP2/Delegate/RepetitionDelegate.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
     private function getInterval(RuleInterface $repetition): array
38 38
     {
39 39
         switch (true) {
40
-            case (bool)$repetition->first('T_ZERO_OR_MORE'):
40
+            case (bool) $repetition->first('T_ZERO_OR_MORE'):
41 41
                 return [0, Repetition::INF_MAX_VALUE];
42 42
 
43
-            case (bool)$repetition->first('T_ONE_OR_MORE'):
43
+            case (bool) $repetition->first('T_ONE_OR_MORE'):
44 44
                 return [1, Repetition::INF_MAX_VALUE];
45 45
 
46
-            case (bool)$repetition->first('T_ZERO_OR_ONE'):
46
+            case (bool) $repetition->first('T_ZERO_OR_ONE'):
47 47
                 return [0, 1];
48 48
 
49
-            case (bool)($repeat = $repetition->first('Repeat')):
50
-                $value = (int)$repeat->first('T_NUMBER')->getValue();
49
+            case (bool) ($repeat = $repetition->first('Repeat')):
50
+                $value = (int) $repeat->first('T_NUMBER')->getValue();
51 51
 
52 52
                 return [$value, $value];
53 53
                 break;
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
                 $from = $to = Repetition::INF_MAX_VALUE;
57 57
 
58 58
                 if ($nodeFrom = $repetition->first('From')) {
59
-                    $from = (int)$nodeFrom->first('T_NUMBER')->getValue();
59
+                    $from = (int) $nodeFrom->first('T_NUMBER')->getValue();
60 60
                 }
61 61
 
62 62
                 if ($nodeTo = $repetition->first('To')) {
63
-                    $to = (int)$nodeTo->first('T_NUMBER')->getValue();
63
+                    $to = (int) $nodeTo->first('T_NUMBER')->getValue();
64 64
                 }
65 65
 
66 66
                 return [$from, $to];
Please login to merge, or discard this patch.
src/Grammar/PP2/Delegate/InvocationDelegate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
                 return $this->getRule();
27 27
         }
28 28
 
29
-        dd((string)$first);
29
+        dd((string) $first);
30 30
     }
31 31
 
32 32
     private function getRule(): Symbol
Please login to merge, or discard this patch.
src/Grammar/PP2/Delegate/IncludeDelegate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 
56 56
         try {
57 57
             foreach (self::FILE_EXTENSIONS as $ext) {
58
-                if (\is_file($path . $ext)) {
59
-                    return File::fromPathname($path . $ext);
58
+                if (\is_file($path.$ext)) {
59
+                    return File::fromPathname($path.$ext);
60 60
                 }
61 61
             }
62 62
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getIncludePathname(): string
76 76
     {
77
-        $path = \dirname($this->file->getPathname()) . '/' . $this->getIncludeValue();
77
+        $path = \dirname($this->file->getPathname()).'/'.$this->getIncludeValue();
78 78
 
79 79
         return \str_replace(['\\\\', '\\'], '/', $path);
80 80
     }
Please login to merge, or discard this patch.