Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
28 | 13 | protected function validateValue($value, ValidationContext $context = null): Result |
|
29 | { |
||
30 | 13 | $result = new Result(); |
|
31 | |||
32 | 13 | if ($this->isEmpty(is_string($value) ? trim($value) : $value)) { |
|
33 | 3 | $result->addError($this->formatMessage($this->message)); |
|
34 | } |
||
35 | |||
36 | 13 | return $result; |
|
37 | } |
||
49 |