| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 21 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 12 | 
| CRAP Score | 5.0113 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 24 | 1 | protected function validateValue($value, DataSetInterface $dataSet = null): Result  | 
            |
| 25 |     { | 
            ||
| 26 | 1 | $result = new Result();  | 
            |
| 27 | 1 |         if (!is_iterable($value)) { | 
            |
| 28 | return $result->addError($this->incorrectInputMessage);  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | 1 |         foreach ($value as $item) { | 
            |
| 32 | 1 | $itemResult = $this->rules->validate($item, $dataSet);  | 
            |
| 33 | 1 |             if ($itemResult->isValid() === false) { | 
            |
| 34 | 1 |                 foreach ($itemResult->getErrors() as $error) { | 
            |
| 35 | 1 | $message = $this->formatMessage($this->message, [  | 
            |
| 36 | 1 | 'error' => $error,  | 
            |
| 37 | 1 | 'value' => $item,  | 
            |
| 38 | ]);  | 
            ||
| 39 | 1 | $result = $result->addError($message);  | 
            |
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | 1 | return $result;  | 
            |
| 45 | }  | 
            ||
| 47 |