@@ -37,17 +37,17 @@ discard block |
||
| 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 |
||
| 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]; |
@@ -26,7 +26,7 @@ |
||
| 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 |
@@ -55,8 +55,8 @@ discard block |
||
| 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 |
||
| 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 | } |