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