@@ -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): ?NameId |
@@ -49,12 +49,12 @@ |
||
| 49 | 49 | sprintf( |
| 50 | 50 | "Encountered illegal location of type %s '%s', expected a VerifyEmailOption instance", |
| 51 | 51 | get_debug_type($value), |
| 52 | - is_scalar($value) ? (string)$value : '', |
|
| 52 | + is_scalar($value) ? (string) $value : '', |
|
| 53 | 53 | ), |
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - return (int)$value->isEnabled(); |
|
| 57 | + return (int) $value->isEnabled(); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?VerifyEmailOption |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | sprintf( |
| 52 | 52 | "Encountered illegal location of type %s '%s', expected a Location 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 | $location = new Location($value); |
| 70 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 70 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 71 | 71 | throw ValueNotConvertible::new( |
| 72 | 72 | $value, |
| 73 | 73 | $this->getName(), |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | "Encountered illegal number of tokens per identity %s '%s', expected a |
| 51 | 51 | NumberOfTokensPerIdentityOption 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 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | try { |
| 75 | - $numberOfTokensPerIdentityOption = new NumberOfTokensPerIdentityOption((int)$value); |
|
| 75 | + $numberOfTokensPerIdentityOption = new NumberOfTokensPerIdentityOption((int) $value); |
|
| 76 | 76 | } catch (InvalidArgumentException $e) { |
| 77 | 77 | throw ValueNotConvertible::new( |
| 78 | 78 | $value, |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | return null; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - return (string)$value; |
|
| 49 | + return (string) $value; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?AuthorityRole |
@@ -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): ?Locale |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | try { |
| 58 | 58 | $locale = new Locale($value); |
| 59 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 59 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 60 | 60 | throw ValueNotConvertible::new( |
| 61 | 61 | $value, |
| 62 | 62 | $this->getName(), |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | if (!is_string($value)) { |
| 68 | 68 | throw InvalidFormat::new( |
| 69 | - is_scalar($value) ? (string)$value : get_debug_type($value), |
|
| 69 | + is_scalar($value) ? (string) $value : get_debug_type($value), |
|
| 70 | 70 | $this->getName(), |
| 71 | 71 | $platform->getDateTimeFormatString(), |
| 72 | 72 | ); |
@@ -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): ?Institution |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | try { |
| 46 | - $data = json_decode((string)$value, true); |
|
| 46 | + $data = json_decode((string) $value, true); |
|
| 47 | 47 | $vettingTypeHints = VettingTypeHintCollection::deserialize($data); |
| 48 | 48 | } catch (InvalidArgumentException $e) { |
| 49 | 49 | throw ValueNotConvertible::new( |