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