| Total Complexity | 9 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| 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 | $this->writeDebugInfo(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2)[1]); |
|
| 23 | |||
| 24 | 109 | return Situations::call($method, $args); |
|
| 25 | } |
||
| 26 | |||
| 27 | 2 | public function checkPoint(string $pointName) |
|
| 28 | { |
||
| 29 | 2 | event('heyman_checkpoint_'.$pointName); |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | 2 | public function aliasCondition(string $currentName, string $newName) |
|
| 33 | { |
||
| 34 | 2 | resolve(ConditionsFacade::class)->alias($currentName, $newName); |
|
| 35 | 2 | } |
|
| 36 | |||
| 37 | 1 | public function defineCondition(string $name, $callable) |
|
| 38 | { |
||
| 39 | 1 | resolve(ConditionsFacade::class)->define($name, $callable); |
|
| 40 | 1 | } |
|
| 41 | |||
| 42 | 1 | public function condition(string $name, $callable) |
|
| 43 | { |
||
| 44 | 1 | $this->defineCondition($name, $callable); |
|
| 45 | 1 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param $debugTrace |
||
| 49 | */ |
||
| 50 | 109 | private function writeDebugInfo($debugTrace) |
|
| 55 | } |
||
| 56 | 109 | } |
|
| 57 | } |
||
| 58 |
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.