Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
18 | 1 | public function visit(AbstractNode $node, ?AbstractVisitor $subVisitor = null, ?array $options = null): string |
|
19 | { |
||
20 | /** @var GroupNode $groupNode */ |
||
21 | 1 | $groupNode = $node; |
|
22 | |||
23 | 1 | $clauses = []; |
|
24 | 1 | foreach ($groupNode->getNodes() as $subNode) { |
|
25 | 1 | $options['parent'] = $node; |
|
26 | 1 | $clauses[] = $subVisitor->visit($subNode, $subVisitor, $options); |
|
|
|||
27 | } |
||
28 | |||
29 | 1 | $clauses = implode(' ', $clauses); |
|
30 | |||
31 | 1 | return "{$groupNode->getTokenLeft()->getDelimiter()}{$clauses}{$groupNode->getTokenRight()->getLexeme()}"; |
|
32 | } |
||
35 |
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.