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