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