Conditions | 4 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 4.0092 |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
37 | 8 | public function __destruct() |
|
38 | { |
||
39 | try { |
||
40 | 8 | $chain = app('heyman.chain'); |
|
41 | 8 | $condition = $chain->get('condition'); |
|
42 | |||
43 | 8 | if (! $condition) { |
|
44 | 8 | $data = $this->validationData; |
|
45 | 8 | $modifier = $this->modifier ?: function ($args) { |
|
46 | 4 | return $args; |
|
47 | 8 | }; |
|
48 | |||
49 | 8 | $condition = resolve(ResponderFactory::class)->validatorCallback($modifier, $data); |
|
50 | 8 | $chain->set('condition', $condition); |
|
51 | } |
||
52 | |||
53 | 8 | resolve('heyman.chains')->commitChain(); |
|
54 | } catch (\Throwable $throwable) { |
||
55 | // |
||
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.