@@ -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($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 | // get nice standard message, so we can throw it keeping the exception chain |
| 61 | 61 | $doctrineExceptionMessage = ConversionException::conversionFailed( |
| 62 | 62 | $value, |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | sprintf( |
| 53 | 53 | "Encountered illegal document number of type %s '%s', expected a DocumentNumber instance", |
| 54 | 54 | get_debug_type($value), |
| 55 | - is_scalar($value) ? (string)$value : '', |
|
| 55 | + is_scalar($value) ? (string) $value : '', |
|
| 56 | 56 | ), |
| 57 | 57 | ); |
| 58 | 58 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | sprintf( |
| 46 | 46 | "Encountered illegal recovery token status of type %s '%s', expected a RecoveryTokenStatus instance", |
| 47 | 47 | get_debug_type($value), |
| 48 | - is_scalar($value) ? (string)$value : '', |
|
| 48 | + is_scalar($value) ? (string) $value : '', |
|
| 49 | 49 | ), |
| 50 | 50 | ); |
| 51 | 51 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | return 20; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value)); |
|
| 61 | + throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value)); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): RecoveryTokenStatus |
| 68 | 68 | { |
| 69 | 69 | if (is_scalar($value)) { |
| 70 | - $value = (string)$value; |
|
| 70 | + $value = (string) $value; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | if ($value === '0') { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | sprintf( |
| 83 | 83 | "Encountered illegal recovery token status of type %s '%s', expected it to be one of [0,10,20]", |
| 84 | 84 | get_debug_type($value), |
| 85 | - is_scalar($value) ? (string)$value : '', |
|
| 85 | + is_scalar($value) ? (string) $value : '', |
|
| 86 | 86 | ), |
| 87 | 87 | ); |
| 88 | 88 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | sprintf( |
| 48 | 48 | "Encountered illegal location of type %s '%s', expected a InstitutionRole 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 | } |
@@ -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($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 | // get nice standard message, so we can throw it keeping the exception chain |
| 59 | 59 | $doctrineExceptionMessage = ConversionException::conversionFailed( |
| 60 | 60 | $value, |
@@ -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( |