| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 6 | protected function validateValue($value, DataSetInterface $dataSet = null): Result |
|
| 22 | { |
||
| 23 | 6 | $result = new Result(); |
|
| 24 | |||
| 25 | 6 | if ($this->isEmpty(is_string($value) ? trim($value) : $value)) { |
|
| 26 | 2 | $result->addError($this->translateMessage($this->message)); |
|
| 27 | } |
||
| 28 | |||
| 29 | 6 | return $result; |
|
| 30 | } |
||
| 42 |