Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
36 | public function check($value): bool |
||
37 | { |
||
38 | $this->requireParameters(['fields']); |
||
39 | |||
40 | $fields = $this->parameter('fields'); |
||
41 | |||
42 | $this->setParameterTextValues($fields, 'values'); |
||
43 | |||
44 | foreach ($fields as $field) { |
||
45 | if (! $this->validation->hasValue($field)) { |
||
|
|||
46 | return true; |
||
47 | } |
||
48 | } |
||
49 | |||
50 | $presentValidator = $this->getRuleValidator('present'); |
||
51 | |||
52 | $presentValidator->setValidation($this->validation); |
||
53 | $presentValidator->setAttribute($this->attribute); |
||
54 | |||
55 | return $presentValidator->check($value); |
||
56 | } |
||
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.