Passed
Pull Request — main (#540)
by
unknown
22:35 queued 17:16
created
ApiBundle/Doctrine/Type/SsoRegistrationBypassOptionType.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 sso registration bypass option %s '%s', expected a 
51 51
                     SsoRegistrationBypassOption 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($value, AbstractPlatform $platform): ?SsoRegistrationBypassOption
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
 
67 67
         try {
68
-            $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool)$value);
68
+            $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool) $value);
69 69
         } catch (TypeError $e) {
70 70
             // get nice standard message, so we can throw it keeping the exception chain
71 71
             $doctrineExceptionMessage = ConversionException::conversionFailed(
Please login to merge, or discard this patch.