| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class HeyMan |
||
| 11 | { |
||
| 12 | use Turn; |
||
| 13 | 14 | ||
| 14 | public function forget(): Forget |
||
| 15 | 14 | { |
|
| 16 | return new Forget(); |
||
| 17 | } |
||
| 18 | 105 | ||
| 19 | public function __call($method, $args) |
||
| 20 | 105 | { |
|
| 21 | resolve('heyman.chain')->startChain(); |
||
|
|
|||
| 22 | 105 | ||
| 23 | if (config()->get('app.debug') and !app()->environment('production')) { |
||
| 24 | $info = array_only(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2)[1], ['file', 'line', 'args']); |
||
| 25 | resolve('heyman.chain')->set('debugInfo', $info); |
||
| 26 | } |
||
| 27 | 105 | ||
| 28 | return SituationsProxy::call($method, $args); |
||
| 29 | } |
||
| 30 | 38 | ||
| 31 | public function makeSure($app): HttpClient |
||
| 32 | 38 | { |
|
| 33 | return new HttpClient($app); |
||
| 34 | } |
||
| 35 | 2 | ||
| 36 | public function checkPoint(string $pointName) |
||
| 37 | 2 | { |
|
| 38 | 1 | event('heyman_checkpoint_'.$pointName); |
|
| 39 | } |
||
| 40 | |||
| 41 | public function condition(string $name, $callable) |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
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.