| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 96 | public function commitChain() |
|
| 29 | { |
||
| 30 | 96 | $chain = resolve('heyman.chain'); |
|
| 31 | 96 | $callback = resolve(ReactionFactory::class)->make(); |
|
| 32 | 96 | $manager = $chain->get('manager'); |
|
| 33 | 96 | $switchableListener = resolve(HeyManSwitcher::class)->wrapForIgnorance($callback, $manager); |
|
| 34 | 96 | $event = $chain->get('event'); |
|
| 35 | |||
| 36 | 96 | foreach ($chain->get('watchedEntities') as $value) { |
|
| 37 | 96 | $this->data[$manager][$value][$event][] = $switchableListener; |
|
| 38 | } |
||
| 56 |
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.