@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * @internal |
199 | 199 | * |
200 | - * @param $name |
|
200 | + * @param string $name |
|
201 | 201 | * |
202 | 202 | * @return bool |
203 | 203 | */ |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * @internal |
211 | 211 | * |
212 | - * @return Definition[] |
|
212 | + * @return \Generator |
|
213 | 213 | * @throws LogicException |
214 | 214 | */ |
215 | 215 | private function getSelfTypeIterator() |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | private function getOptionName(eSection $section, string $optionName) : eOption |
135 | 135 | { |
136 | - $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e" . ucfirst((string) $section) . 'Option'; |
|
136 | + $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e".ucfirst((string) $section).'Option'; |
|
137 | 137 | |
138 | 138 | /** |
139 | 139 | * @var eOption $enumClassName |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | */ |
284 | 284 | private function getDocumentationDirectoryPath() : string |
285 | 285 | { |
286 | - return __DIR__ . '/../../../../sphinx/docs'; |
|
286 | + return __DIR__.'/../../../../sphinx/docs'; |
|
287 | 287 | } |
288 | 288 | |
289 | 289 | /** |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | */ |
294 | 294 | private function getDocumentationFilePath() : string |
295 | 295 | { |
296 | - return $this->getDocumentationDirectoryPath() . "/documentation_{$this->version}.yaml"; |
|
296 | + return $this->getDocumentationDirectoryPath()."/documentation_{$this->version}.yaml"; |
|
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | */ |
304 | 304 | private function getRemovedListFilePath() : string |
305 | 305 | { |
306 | - return $this->getDocumentationDirectoryPath() . "/permanently_removed_options_{$this->version}.yaml"; |
|
306 | + return $this->getDocumentationDirectoryPath()."/permanently_removed_options_{$this->version}.yaml"; |
|
307 | 307 | } |
308 | 308 | |
309 | 309 | /** |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | { |
70 | 70 | try { |
71 | 71 | $string = ''; |
72 | - $string .= $this->renderDefineBlock() . PHP_EOL; |
|
72 | + $string .= $this->renderDefineBlock().PHP_EOL; |
|
73 | 73 | $string .= $this->renderOptions(); |
74 | 74 | } catch (\Exception $e) { |
75 | 75 | $string = ''; |
@@ -184,11 +184,11 @@ discard block |
||
184 | 184 | protected function renderOptions() : string |
185 | 185 | { |
186 | 186 | $string = ''; |
187 | - $string .= '{' . PHP_EOL; |
|
187 | + $string .= '{'.PHP_EOL; |
|
188 | 188 | foreach ($this->iterateOptions() as $option) { |
189 | - $string .= "\t{$option}" . PHP_EOL; |
|
189 | + $string .= "\t{$option}".PHP_EOL; |
|
190 | 190 | } |
191 | - $string .= '}' . PHP_EOL . PHP_EOL; |
|
191 | + $string .= '}'.PHP_EOL.PHP_EOL; |
|
192 | 192 | |
193 | 193 | return $string; |
194 | 194 | } |
@@ -42,17 +42,17 @@ |
||
42 | 42 | |
43 | 43 | do { |
44 | 44 | foreach ($index->iterateOptions() as $option) { |
45 | - if(eIndexOption::SOURCE()->is($option->getName()) ) { |
|
45 | + if (eIndexOption::SOURCE()->is($option->getName())) { |
|
46 | 46 | $source_name = $option->getValue(); |
47 | 47 | } |
48 | 48 | } |
49 | - if($index->isHasInheritance()) { |
|
49 | + if ($index->isHasInheritance()) { |
|
50 | 50 | $index = $index->getInheritance(); |
51 | 51 | } |
52 | - } while($index->isHasInheritance()); |
|
52 | + } while ($index->isHasInheritance()); |
|
53 | 53 | |
54 | 54 | foreach ($this->getConfiguration()->iterateSource() as $source) { |
55 | - if($source->getName() === $source_name) { |
|
55 | + if ($source->getName() === $source_name) { |
|
56 | 56 | return $source; |
57 | 57 | } |
58 | 58 | } |