| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Limoncello\Validation\Validator; |
||
| 35 | 33 | protected static function validateData(RuleInterface $rule, $input, ErrorAggregatorInterface $aggregator) |
|
| 36 | { |
||
| 37 | 33 | foreach ($rule->validate($input) as $error) { |
|
| 38 | 29 | yield $error; |
|
| 39 | }; |
||
| 40 | |||
| 41 | 33 | $rule->onFinish($aggregator); |
|
| 42 | |||
| 43 | 33 | foreach ($aggregator->get() as $error) { |
|
| 44 | 4 | yield $error; |
|
| 45 | } |
||
| 46 | 33 | } |
|
| 47 | } |
||
| 48 |