| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | private function defaultException(Result $result): ValidationExceptionInterface |
||
| 31 | { |
||
| 32 | return |
||
| 33 | $this->exception instanceof ValidationExceptionInterface ? |
||
| 34 | $this->exception : |
||
| 35 | new ValidationException( |
||
| 36 | $result->getErrors(), |
||
| 37 | is_string($this->exception) ? $this->exception : '' |
||
| 38 | ); |
||
| 41 |