| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 3 | protected function validateValue($value, DataSetInterface $dataSet = null): Result |
|
| 23 | { |
||
| 24 | 3 | $result = new Result(); |
|
| 25 | 3 | if (!$this->getRules()->validate($value, $dataSet)->isValid()) { |
|
| 26 | 3 | $result->addError($this->translateMessage($this->message)); |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | return $result; |
|
| 30 | } |
||
| 43 |