Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function collect(mixed $value, Result $result, ?iterable $rules = null): void |
||
24 | { |
||
25 | if (!$this->isActive()) { |
||
26 | return; |
||
27 | } |
||
28 | |||
29 | $this->validations[] = [ |
||
30 | 'value' => $value, |
||
31 | 'rules' => $rules instanceof Traversable ? iterator_to_array($rules, true) : (array) $rules, |
||
32 | 'result' => $result->isValid(), |
||
33 | 'errors' => $result->getErrors(), |
||
34 | ]; |
||
57 |
This check looks for private methods that have been defined, but are not used inside the class.