Conditions | 5 |
Paths | 6 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
16 | 103 | public static function call($method, $args) |
|
17 | { |
||
18 | 103 | $args = is_array($args[0]) ? $args[0] : $args; |
|
19 | 103 | foreach (self::situations as $className) { |
|
20 | 103 | if (method_exists($className, $method) || app($className)->hasMethod($method)) { |
|
|
|||
21 | 103 | app($className)->$method(...$args); |
|
22 | |||
23 | 103 | return app(YouShouldHave::class); |
|
24 | } |
||
28 |
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.