Total Complexity | 8 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 89.47% |
Changes | 0 |
1 | <?php |
||
9 | class HeyMan |
||
10 | { |
||
11 | use Turn; |
||
12 | |||
13 | 14 | public function forget(): Forget |
|
16 | } |
||
17 | |||
18 | 109 | public function __call($method, $args) |
|
19 | { |
||
20 | 109 | resolve('heyman.chain')->startChain(); |
|
|
|||
21 | |||
22 | 109 | if (config('app.debug') && ! 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 | 109 | return Situations::call($method, $args); |
|
28 | } |
||
29 | |||
30 | 2 | public function checkPoint(string $pointName) |
|
33 | 1 | } |
|
34 | |||
35 | 2 | public function aliasCondition(string $currentName, string $newName) |
|
36 | { |
||
37 | 2 | resolve(ConditionsFacade::class)->alias($currentName, $newName); |
|
38 | 2 | } |
|
39 | |||
40 | 1 | public function defineCondition(string $name, $callable) |
|
41 | { |
||
42 | 1 | resolve(ConditionsFacade::class)->define($name, $callable); |
|
43 | 1 | } |
|
44 | |||
45 | 1 | public function condition(string $name, $callable) |
|
48 | 1 | } |
|
49 | } |
||
50 |
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.