Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 56.25% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ChainFactory extends AbstractDeclarationBasedFactory |
||
12 | { |
||
13 | /** |
||
14 | * @return Chain |
||
15 | */ |
||
16 | 1 | public function buildChain() |
|
17 | { |
||
18 | 1 | $this->initialize(); |
|
19 | 1 | $chain = GeneralUtility::makeInstance(Chain::class); |
|
20 | 1 | foreach ($this->configurationProvider->getScraperKeys() as $scraperKey) { |
|
|
|||
21 | $chain->append($this->buildScraper($scraperKey)); |
||
22 | } |
||
23 | 1 | return $chain; |
|
24 | } |
||
25 | |||
26 | protected function getScraperDeclarations(): array |
||
32 | } |
||
33 | |||
34 | 1 | private function initialize(): void |
|
35 | { |
||
36 | 1 | $this->setDeclarations($this->getScraperDeclarations()); |
|
37 | 1 | $this->setClassImplements([ScraperInterface::class]); |
|
38 | 1 | } |
|
39 | |||
40 | /** |
||
41 | * @return ScraperInterface |
||
42 | */ |
||
43 | private function buildScraper(string $scraperKey) |
||
46 | } |
||
47 | } |
||
48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.