Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 1 | public function otherwise() |
|
19 | { |
||
20 | 1 | $rules = $this->validationData; |
|
21 | 1 | $modifier = $this->modifier ?: function ($args) { |
|
22 | 1 | return $args; |
|
23 | 1 | }; |
|
24 | |||
25 | 1 | $result = resolve(ResponderFactory::class)->validationPassesCallback($modifier, $rules); |
|
26 | |||
27 | 1 | resolve('heyman.chain')->set('condition', $result); |
|
|
|||
28 | |||
29 | 1 | return resolve(Reaction::class); |
|
30 | } |
||
59 |
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.