Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
53 | 78 | private function getAssistantClass($assistant): ?string |
|
54 | { |
||
55 | 78 | if (in_array($assistant, $this->assistants)) { |
|
56 | 67 | return $assistant; |
|
57 | } |
||
58 | |||
59 | 57 | foreach ($this->assistants as $class) { |
|
60 | 54 | if ($assistant == $class::key()) { |
|
61 | 54 | return $class; |
|
62 | } |
||
63 | } |
||
64 | |||
65 | 3 | return null; |
|
66 | } |
||
68 |
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.