Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class ParametersReplacingVisitor implements VisitorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $parameters; |
||
15 | |||
16 | /** |
||
17 | * @var ReplacingStrategyCollection |
||
18 | */ |
||
19 | private $replacingStrategies; |
||
20 | |||
21 | 21 | public function __construct(array $parameters) |
|
25 | 21 | } |
|
26 | |||
27 | 16 | public function visitSingleCompare(AbstractSingleCompare $compare) |
|
28 | { |
||
29 | 16 | $compare->update([ |
|
30 | 16 | 'left' => $this->replaceParameters($compare->getLeft()), |
|
31 | 16 | 'right' => $this->replaceParameters($compare->getRight()), |
|
32 | ]); |
||
33 | 16 | } |
|
34 | |||
35 | 6 | public function visitMultiCompare(AbstractMultiCompare $multiCompare) |
|
39 | 6 | } |
|
40 | |||
41 | 21 | protected function replaceParameters(string $subject): string |
|
61 |
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.