| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 117 | public static function call($method, $args) |
|
| 19 | { |
||
| 20 | 117 | $method = self::$aliases[$method] ?? $method; |
|
| 21 | 117 | $args = is_array($args[0] ?? null) ? $args[0] : $args; |
|
| 22 | 117 | [$listenerClass, $situation] = self::$methods[$method]; |
|
| 23 | |||
| 24 | 117 | resolve('heyman.chains')->init( |
|
|
|
|||
| 25 | 117 | $listenerClass, ...resolve($situation)->normalize($method, $args) |
|
| 26 | ); |
||
| 27 | |||
| 28 | 116 | return resolve(Condition::class); |
|
| 29 | } |
||
| 36 |
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.