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