Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | 116 | public function __call(string $method, $args) |
|
23 | { |
||
24 | 116 | $result = resolve(ConditionsFacade::class)->_call($method, $args); |
|
25 | |||
26 | 116 | if ($result instanceof \Closure) { |
|
27 | 108 | resolve('heyman.chain')->set('condition', $result); |
|
|
|||
28 | |||
29 | 108 | return resolve(Otherwise::class); |
|
30 | } |
||
31 | |||
32 | 12 | return $result; |
|
33 | } |
||
40 |
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.