Total Complexity | 6 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 84.62% |
Changes | 0 |
1 | <?php |
||
9 | class HeyMan |
||
10 | { |
||
11 | use Turn; |
||
12 | |||
13 | 14 | public function forget(): Forget |
|
16 | } |
||
17 | |||
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 | } |
||
29 | |||
30 | 2 | public function checkPoint(string $pointName) |
|
33 | 1 | } |
|
34 | |||
35 | 1 | public function condition(string $name, $callable) |
|
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.