@@ -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($value, AbstractPlatform $platform): ?Institution |
@@ -47,12 +47,12 @@ |
||
| 47 | 47 | sprintf( |
| 48 | 48 | "Encountered illegal location of type %s '%s', expected a UseRaLocationsOption instance", |
| 49 | 49 | get_debug_type($value), |
| 50 | - is_scalar($value) ? (string)$value : '', |
|
| 50 | + is_scalar($value) ? (string) $value : '', |
|
| 51 | 51 | ), |
| 52 | 52 | ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return (int)$value->isEnabled(); |
|
| 55 | + return (int) $value->isEnabled(); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | public function convertToPHPValue($value, AbstractPlatform $platform): ?UseRaLocationsOption |
@@ -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($value, AbstractPlatform $platform): ?Email |
@@ -50,12 +50,12 @@ discard block |
||
| 50 | 50 | "Encountered illegal self vet option %s '%s', expected a |
| 51 | 51 | SelfAssertedTokensOption 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): ?SelfAssertedTokensOption |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | try { |
| 68 | - $selfAssertedTokensOption = new SelfAssertedTokensOption((bool)$value); |
|
| 68 | + $selfAssertedTokensOption = new SelfAssertedTokensOption((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( |
@@ -49,12 +49,12 @@ discard block |
||
| 49 | 49 | "Encountered illegal self vet option %s '%s', expected a |
| 50 | 50 | SelfVetOption 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($value, AbstractPlatform $platform): ?SelfVetOption |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | try { |
| 67 | - $selfVetOption = new SelfVetOption((bool)$value); |
|
| 67 | + $selfVetOption = new SelfVetOption((bool) $value); |
|
| 68 | 68 | } catch (TypeError $e) { |
| 69 | 69 | // get nice standard message, so we can throw it keeping the exception chain |
| 70 | 70 | $doctrineExceptionMessage = ConversionException::conversionFailed( |
@@ -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($value, AbstractPlatform $platform): ?NameId |
@@ -48,12 +48,12 @@ |
||
| 48 | 48 | sprintf( |
| 49 | 49 | "Encountered illegal location of type %s '%s', expected a VerifyEmailOption 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($value, AbstractPlatform $platform): ?VerifyEmailOption |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | try { |
| 47 | - $data = json_decode((string)$value, true); |
|
| 47 | + $data = json_decode((string) $value, true); |
|
| 48 | 48 | $vettingTypeHints = VettingTypeHintCollection::deserialize($data); |
| 49 | 49 | } catch (InvalidArgumentException $e) { |
| 50 | 50 | // get nice standard message, so we can throw it keeping the exception chain |
@@ -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($value, AbstractPlatform $platform): ?AuthorityRole |