| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 4 | public function isValid($value): bool |
|
| 26 | { |
||
| 27 | 4 | return some( |
|
| 28 | 4 | $this->validators, |
|
| 29 | function (Validator\ValidatorInterface $validator) use ($value): bool { |
||
| 30 | 4 | if ($validator->isValid($value)) { |
|
| 31 | 3 | return true; |
|
| 32 | } |
||
| 33 | |||
| 34 | 3 | $messages = $validator->getMessages(); |
|
| 35 | 3 | $this->messages = array_replace_recursive($this->messages, $messages); |
|
| 36 | 3 | return false; |
|
| 37 | 4 | }, |
|
| 54 |