Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.3332 |
Changes | 0 |
1 | <?php |
||
18 | 106 | public function __call($method, $args) |
|
19 | { |
||
20 | 106 | resolve('heyman.chain')->startChain(); |
|
|
|||
21 | |||
22 | 106 | if (config()->get('app.debug') and ! app()->environment('production')) { |
|
23 | $info = array_only(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2)[1], ['file', 'line', 'args']); |
||
24 | resolve('heyman.chain')->set('debugInfo', $info); |
||
25 | } |
||
26 | |||
27 | 106 | return SituationsProxy::call($method, $args); |
|
28 | } |
||
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.