@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @throws ValidationException |
29 | 29 | */ |
30 | 30 | protected function guardResult( |
31 | - Result|ValidationResultSet $guardResult, |
|
31 | + Result | ValidationResultSet $guardResult, |
|
32 | 32 | ?ValidationExceptionInterface $validationException = null |
33 | 33 | ): void { |
34 | 34 | if ($guardResult->isOk()) { |
@@ -37,8 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | $exception = |
39 | 39 | $validationException instanceof ValidationExceptionInterface ? |
40 | - $validationException : |
|
41 | - new ValidationException; |
|
40 | + $validationException : new ValidationException; |
|
42 | 41 | |
43 | 42 | $results = $guardResult instanceof Result ? [$guardResult] : $guardResult->validationResults(); |
44 | 43 | foreach ($results as $result) { |