Passed
Push — main ( 0234a4...50ef61 )
by Breno
01:36
created
src/Exception/Guard.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.