@@ -42,7 +42,7 @@ |
||
| 42 | 42 | return null; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - return (string)$value; |
|
| 45 | + return (string) $value; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Email |
@@ -48,12 +48,12 @@ |
||
| 48 | 48 | sprintf( |
| 49 | 49 | "Encountered illegal location of type %s '%s', expected a UseRaLocationsOption instance", |
| 50 | 50 | get_debug_type($value), |
| 51 | - is_scalar($value) ? (string)$value : '', |
|
| 51 | + is_scalar($value) ? (string) $value : '', |
|
| 52 | 52 | ), |
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return (int)$value->isEnabled(); |
|
| 56 | + return (int) $value->isEnabled(); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?UseRaLocationsOption |
@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | "Encountered illegal sso registration bypass option %s '%s', expected a |
| 55 | 55 | SsoRegistrationBypassOption instance", |
| 56 | 56 | get_debug_type($value), |
| 57 | - is_scalar($value) ? (string)$value : '', |
|
| 57 | + is_scalar($value) ? (string) $value : '', |
|
| 58 | 58 | ), |
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - return (int)$value->isEnabled(); |
|
| 62 | + return (int) $value->isEnabled(); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SsoRegistrationBypassOption |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | try { |
| 72 | - $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool)$value); |
|
| 72 | + $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool) $value); |
|
| 73 | 73 | } catch (TypeError $e) { |
| 74 | 74 | throw ValueNotConvertible::new( |
| 75 | 75 | $value, |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return null; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - return (string)$value; |
|
| 48 | + return (string) $value; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Location |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | try { |
| 58 | 58 | $location = new Location($value); |
| 59 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 59 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 60 | 60 | throw ValueNotConvertible::new( |
| 61 | 61 | $value, |
| 62 | 62 | $this->getName(), |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | return null; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - return (string)$value; |
|
| 46 | + return (string) $value; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?CommonName |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | try { |
| 56 | 56 | $commonName = new CommonName($value); |
| 57 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 57 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 58 | 58 | throw ValueNotConvertible::new( |
| 59 | 59 | $value, |
| 60 | 60 | $this->getName(), |
@@ -48,12 +48,12 @@ |
||
| 48 | 48 | sprintf( |
| 49 | 49 | "Encountered illegal location of type %s '%s', expected a ShowRaaContactInformationOption instance", |
| 50 | 50 | get_debug_type($value), |
| 51 | - is_scalar($value) ? (string)$value : '', |
|
| 51 | + is_scalar($value) ? (string) $value : '', |
|
| 52 | 52 | ), |
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return (int)$value->isEnabled(); |
|
| 56 | + return (int) $value->isEnabled(); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?ShowRaaContactInformationOption |
@@ -50,12 +50,12 @@ discard block |
||
| 50 | 50 | "Encountered illegal sso on 2fo vet option %s '%s', expected a |
| 51 | 51 | SsoOn2faOption 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): ?SsoOn2faOption |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | try { |
| 68 | - $ssoOn2faOption = new SsoOn2faOption((bool)$value); |
|
| 68 | + $ssoOn2faOption = new SsoOn2faOption((bool) $value); |
|
| 69 | 69 | } catch (TypeError $e) { |
| 70 | 70 | throw ValueNotConvertible::new( |
| 71 | 71 | $value, |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | sprintf( |
| 52 | 52 | "Encountered illegal contact information of type %s '%s', expected a ContactInformation instance", |
| 53 | 53 | get_debug_type($value), |
| 54 | - is_scalar($value) ? (string)$value : '', |
|
| 54 | + is_scalar($value) ? (string) $value : '', |
|
| 55 | 55 | ), |
| 56 | 56 | ); |
| 57 | 57 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | try { |
| 69 | 69 | $contactInformation = new ContactInformation($value); |
| 70 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 70 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 71 | 71 | throw ValueNotConvertible::new( |
| 72 | 72 | $value, |
| 73 | 73 | $this->getName(), |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | return null; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - return (string)$value; |
|
| 45 | + return (string) $value; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SecondFactorType |