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