Passed
Push — feature/doctrine-dbal4 ( 5ae582 )
by Johan
05:56
created
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfVetOptionType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
                     "Encountered illegal self vet option %s '%s', expected a 
51 51
                     SelfVetOption instance",
52 52
                     get_debug_type($value),
53
-                    is_scalar($value) ? (string)$value : '',
53
+                    is_scalar($value) ? (string) $value : '',
54 54
                 ),
55 55
             );
56 56
         }
57 57
 
58
-        return (int)$value->isEnabled();
58
+        return (int) $value->isEnabled();
59 59
     }
60 60
 
61 61
     public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SelfVetOption
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
 
67 67
         try {
68
-            $selfVetOption = new SelfVetOption((bool)$value);
68
+            $selfVetOption = new SelfVetOption((bool) $value);
69 69
         } catch (TypeError $e) {
70 70
             throw ValueNotConvertible::new(
71 71
                 $value,
Please login to merge, or discard this patch.