@@ -105,7 +105,7 @@ |
||
105 | 105 | $path = \trim($token->value(1), " \t\n\r\0\x0B\"'"); |
106 | 106 | |
107 | 107 | foreach (self::FILE_EXTENSIONS as $extension) { |
108 | - $file = \dirname($from->getPathname()) . '/' . $path . $extension; |
|
108 | + $file = \dirname($from->getPathname()).'/'.$path.$extension; |
|
109 | 109 | |
110 | 110 | if (\is_file($file)) { |
111 | 111 | return File::fromPathname($file); |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | return; |
55 | 55 | } |
56 | 56 | |
57 | - if (! \array_key_exists($this->current, $this->rules)) { |
|
57 | + if (!\array_key_exists($this->current, $this->rules)) { |
|
58 | 58 | $this->rules[$this->current] = []; |
59 | 59 | } |
60 | 60 | |
61 | - if (! \array_key_exists($this->current, $this->files)) { |
|
61 | + if (!\array_key_exists($this->current, $this->files)) { |
|
62 | 62 | $this->files[$this->current] = $readable; |
63 | 63 | } |
64 | 64 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | if ($delegate) { |
109 | - if (! \class_exists($delegate)) { |
|
109 | + if (!\class_exists($delegate)) { |
|
110 | 110 | $error = \sprintf('Could not found class "%s" to delegate rule "%s"', $delegate, $name); |
111 | 111 | throw (new GrammarException($error))->throwsIn($readable, $token->offset()); |
112 | 112 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | */ |
83 | 83 | private function set(string $group, string $name, string $value): void |
84 | 84 | { |
85 | - if (! \array_key_exists($group, $this->configs)) { |
|
85 | + if (!\array_key_exists($group, $this->configs)) { |
|
86 | 86 | $this->configs[$group] = []; |
87 | 87 | } |
88 | 88 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $this->tokens[$token->value(1)] = $token->value(2); |
37 | 37 | |
38 | 38 | if ($token->value(3)) { |
39 | - $this->groups[$token->value(1)] = (int)$token->value(3); |
|
39 | + $this->groups[$token->value(1)] = (int) $token->value(3); |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function __construct(string $prefix, array $allowed) |
33 | 33 | { |
34 | - $this->prefix = \trim($prefix, '.') . '.'; |
|
34 | + $this->prefix = \trim($prefix, '.').'.'; |
|
35 | 35 | $this->allowed = $allowed; |
36 | 36 | } |
37 | 37 |