@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $tokenNode = $element->getChild(0); |
38 | 38 | |
39 | - if (!$tokenNode->isToken()) { |
|
39 | + if ( ! $tokenNode->isToken()) { |
|
40 | 40 | return $tokenNode->accept($this); |
41 | 41 | } |
42 | 42 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return $value; |
66 | 66 | } |
67 | 67 | |
68 | - return str_replace($escapeChar . $escapeChar, $escapeChar, $value); |
|
68 | + return str_replace($escapeChar.$escapeChar, $escapeChar, $value); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | private function visitCompoundType(TreeNode $element, ?int &$handle, ?int $eldnah): array |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | return [ |
77 | 77 | 'name' => $nameToken->getValueValue(), |
78 | 78 | 'params' => array_map( |
79 | - function (TreeNode $node) use ($handle, $eldnah) { |
|
79 | + function(TreeNode $node) use ($handle, $eldnah) { |
|
80 | 80 | return $node->accept($this, $handle, $eldnah); |
81 | 81 | }, |
82 | 82 | $parameters |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | private function visitArrayType(TreeNode $node, ?int &$handle, ?int $eldnah): array |
88 | 88 | { |
89 | 89 | return array_map( |
90 | - function (TreeNode $child) { |
|
90 | + function(TreeNode $child) { |
|
91 | 91 | return $child->accept($this); |
92 | 92 | }, |
93 | 93 | $node->getChildren() |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $this->addExclusionStrategy(new VersionExclusionStrategy($this->attributes['version'])); |
80 | 80 | } |
81 | 81 | |
82 | - if (!empty($this->attributes['max_depth_checks'])) { |
|
82 | + if ( ! empty($this->attributes['max_depth_checks'])) { |
|
83 | 83 | $this->addExclusionStrategy(new DepthExclusionStrategy()); |
84 | 84 | } |
85 | 85 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | final protected function assertMutable(): void |
134 | 134 | { |
135 | - if (!$this->initialized) { |
|
135 | + if ( ! $this->initialized) { |
|
136 | 136 | return; |
137 | 137 | } |
138 | 138 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | { |
209 | 209 | $metadata = $this->metadataStack->pop(); |
210 | 210 | |
211 | - if (!$metadata instanceof PropertyMetadata) { |
|
211 | + if ( ! $metadata instanceof PropertyMetadata) { |
|
212 | 212 | throw new RuntimeException('Context metadataStack not working well'); |
213 | 213 | } |
214 | 214 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | { |
218 | 218 | $metadata = $this->metadataStack->pop(); |
219 | 219 | |
220 | - if (!$metadata instanceof ClassMetadata) { |
|
220 | + if ( ! $metadata instanceof ClassMetadata) { |
|
221 | 221 | throw new RuntimeException('Context metadataStack not working well'); |
222 | 222 | } |
223 | 223 | } |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | */ |
233 | 233 | public function getCurrentPath(): array |
234 | 234 | { |
235 | - if (!$this->metadataStack) { |
|
235 | + if ( ! $this->metadataStack) { |
|
236 | 236 | return []; |
237 | 237 | } |
238 | 238 |
@@ -8,12 +8,12 @@ discard block |
||
8 | 8 | |
9 | 9 | @trigger_error(sprintf('This script, "%s" is deprecated and will be removed in the next major version.', __FILE__), E_USER_DEPRECATED); |
10 | 10 | |
11 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
11 | +require __DIR__.'/../../vendor/autoload.php'; |
|
12 | 12 | |
13 | -$compiler = Llk::load(new Read(__DIR__ . '/grammar.pp')); |
|
13 | +$compiler = Llk::load(new Read(__DIR__.'/grammar.pp')); |
|
14 | 14 | |
15 | 15 | file_put_contents( |
16 | - __DIR__ . '/InnerParser.php', |
|
16 | + __DIR__.'/InnerParser.php', |
|
17 | 17 | <<<EOS |
18 | 18 | <?php |
19 | 19 | |
@@ -27,5 +27,5 @@ discard block |
||
27 | 27 | */ |
28 | 28 | |
29 | 29 | EOS |
30 | - . 'final ' . Llk::save($compiler, 'InnerParser') |
|
30 | + . 'final '.Llk::save($compiler, 'InnerParser') |
|
31 | 31 | ); |