@@ -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( |
@@ -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): ?ContactInformation |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | try { |
| 58 | 58 | $contactInformation = new ContactInformation($value); |
| 59 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 59 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 60 | 60 | throw ValueNotConvertible::new( |
| 61 | 61 | $value, |
| 62 | 62 | $this->getName(), |
@@ -50,12 +50,12 @@ discard block |
||
| 50 | 50 | "Encountered illegal self vet option %s '%s', expected a |
| 51 | 51 | SelfVetOption 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): ?SelfVetOption |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | try { |
| 68 | - $selfVetOption = new SelfVetOption((bool)$value); |
|
| 68 | + $selfVetOption = new SelfVetOption((bool) $value); |
|
| 69 | 69 | } catch (TypeError $e) { |
| 70 | 70 | throw ValueNotConvertible::new( |
| 71 | 71 | $value, |