Conditions | 4 |
Paths | 6 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
22 | 14 | public function __call($method, $args) |
|
23 | { |
||
24 | 14 | $args = is_array($args[0]) ? $args[0] : $args; |
|
25 | |||
26 | 14 | foreach (static::$situationProviders as $class) { |
|
27 | 14 | if (in_array($method, $class::getForgetMethods())) { |
|
28 | 14 | $args = $class::getForgetArgs($method, $args); |
|
29 | } |
||
30 | } |
||
31 | |||
32 | 14 | resolve('heyman.chains')->forgetAbout(...$args); |
|
|
|||
33 | 14 | } |
|
35 |
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.