@@ -77,9 +77,9 @@ |
||
| 77 | 77 | public function serialize(): array |
| 78 | 78 | { |
| 79 | 79 | return [ |
| 80 | - 'identity_id' => (string)$this->identityId, |
|
| 81 | - 'identity_institution' => (string)$this->identityInstitution, |
|
| 82 | - 'name_id' => (string)$this->nameId, |
|
| 80 | + 'identity_id' => (string) $this->identityId, |
|
| 81 | + 'identity_institution' => (string) $this->identityInstitution, |
|
| 82 | + 'name_id' => (string) $this->nameId, |
|
| 83 | 83 | ]; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -72,8 +72,8 @@ |
||
| 72 | 72 | public function serialize(): array |
| 73 | 73 | { |
| 74 | 74 | return [ |
| 75 | - 'id' => (string)$this->identityId, |
|
| 76 | - 'institution' => (string)$this->identityInstitution, |
|
| 75 | + 'id' => (string) $this->identityId, |
|
| 76 | + 'institution' => (string) $this->identityInstitution, |
|
| 77 | 77 | ]; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -123,12 +123,12 @@ |
||
| 123 | 123 | public function serialize(): array |
| 124 | 124 | { |
| 125 | 125 | return [ |
| 126 | - 'identity_id' => (string)$this->identityId, |
|
| 127 | - 'name_id' => (string)$this->nameId, |
|
| 128 | - 'identity_institution' => (string)$this->identityInstitution, |
|
| 129 | - 'second_factor_id' => (string)$this->secondFactorId, |
|
| 130 | - 'second_factor_type' => (string)$this->secondFactorType, |
|
| 131 | - 'preferred_locale' => (string)$this->preferredLocale, |
|
| 126 | + 'identity_id' => (string) $this->identityId, |
|
| 127 | + 'name_id' => (string) $this->nameId, |
|
| 128 | + 'identity_institution' => (string) $this->identityInstitution, |
|
| 129 | + 'second_factor_id' => (string) $this->secondFactorId, |
|
| 130 | + 'second_factor_type' => (string) $this->secondFactorType, |
|
| 131 | + 'preferred_locale' => (string) $this->preferredLocale, |
|
| 132 | 132 | ]; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -71,9 +71,9 @@ |
||
| 71 | 71 | public function serialize(): array |
| 72 | 72 | { |
| 73 | 73 | return [ |
| 74 | - 'id' => (string)$this->identityId, |
|
| 75 | - 'institution' => (string)$this->identityInstitution, |
|
| 76 | - 'preferred_locale' => (string)$this->preferredLocale, |
|
| 74 | + 'id' => (string) $this->identityId, |
|
| 75 | + 'institution' => (string) $this->identityInstitution, |
|
| 76 | + 'preferred_locale' => (string) $this->preferredLocale, |
|
| 77 | 77 | ]; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $metadata->identityId = $this->identityId; |
| 89 | 89 | $metadata->identityInstitution = $this->identityInstitution; |
| 90 | 90 | $metadata->secondFactorId = $this->secondFactorId; |
| 91 | - $metadata->secondFactorType = new SecondFactorType((string)$this->stepupProvider); |
|
| 91 | + $metadata->secondFactorType = new SecondFactorType((string) $this->stepupProvider); |
|
| 92 | 92 | $metadata->secondFactorIdentifier = $this->gssfId; |
| 93 | 93 | |
| 94 | 94 | return $metadata; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | Email::unknown(), |
| 112 | 112 | new Locale($data['preferred_locale']), |
| 113 | 113 | DateTime::fromString($data['registration_requested_at']), |
| 114 | - (string)$data['registration_code'], |
|
| 114 | + (string) $data['registration_code'], |
|
| 115 | 115 | ); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -123,13 +123,13 @@ discard block |
||
| 123 | 123 | public function serialize(): array |
| 124 | 124 | { |
| 125 | 125 | return [ |
| 126 | - 'identity_id' => (string)$this->identityId, |
|
| 127 | - 'identity_institution' => (string)$this->identityInstitution, |
|
| 128 | - 'second_factor_id' => (string)$this->secondFactorId, |
|
| 129 | - 'stepup_provider' => (string)$this->stepupProvider, |
|
| 130 | - 'registration_requested_at' => (string)$this->registrationRequestedAt, |
|
| 126 | + 'identity_id' => (string) $this->identityId, |
|
| 127 | + 'identity_institution' => (string) $this->identityInstitution, |
|
| 128 | + 'second_factor_id' => (string) $this->secondFactorId, |
|
| 129 | + 'stepup_provider' => (string) $this->stepupProvider, |
|
| 130 | + 'registration_requested_at' => (string) $this->registrationRequestedAt, |
|
| 131 | 131 | 'registration_code' => $this->registrationCode, |
| 132 | - 'preferred_locale' => (string)$this->preferredLocale, |
|
| 132 | + 'preferred_locale' => (string) $this->preferredLocale, |
|
| 133 | 133 | ]; |
| 134 | 134 | } |
| 135 | 135 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | return (new SensitiveData) |
| 139 | 139 | ->withCommonName($this->commonName) |
| 140 | 140 | ->withEmail($this->email) |
| 141 | - ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string)$this->stepupProvider)); |
|
| 141 | + ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider)); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | public function setSensitiveData(SensitiveData $sensitiveData): void |
@@ -90,11 +90,11 @@ |
||
| 90 | 90 | public function serialize(): array |
| 91 | 91 | { |
| 92 | 92 | return [ |
| 93 | - 'identity_id' => (string)$this->identityId, |
|
| 94 | - 'name_id' => (string)$this->nameId, |
|
| 95 | - 'identity_institution' => (string)$this->identityInstitution, |
|
| 96 | - 'preferred_locale' => (string)$this->preferredLocale, |
|
| 97 | - 'second_factor_id' => (string)$this->secondFactorId, |
|
| 93 | + 'identity_id' => (string) $this->identityId, |
|
| 94 | + 'name_id' => (string) $this->nameId, |
|
| 95 | + 'identity_institution' => (string) $this->identityInstitution, |
|
| 96 | + 'preferred_locale' => (string) $this->preferredLocale, |
|
| 97 | + 'second_factor_id' => (string) $this->secondFactorId, |
|
| 98 | 98 | ]; |
| 99 | 99 | } |
| 100 | 100 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $metadata->identityId = $this->identityId; |
| 78 | 78 | $metadata->identityInstitution = $this->identityInstitution; |
| 79 | 79 | $metadata->secondFactorId = $this->secondFactorId; |
| 80 | - $metadata->secondFactorType = new SecondFactorType((string)$this->stepupProvider); |
|
| 80 | + $metadata->secondFactorType = new SecondFactorType((string) $this->stepupProvider); |
|
| 81 | 81 | $metadata->secondFactorIdentifier = $this->gssfId; |
| 82 | 82 | |
| 83 | 83 | return $metadata; |
@@ -112,14 +112,14 @@ discard block |
||
| 112 | 112 | public function serialize(): array |
| 113 | 113 | { |
| 114 | 114 | return [ |
| 115 | - 'identity_id' => (string)$this->identityId, |
|
| 116 | - 'identity_institution' => (string)$this->identityInstitution, |
|
| 117 | - 'second_factor_id' => (string)$this->secondFactorId, |
|
| 118 | - 'stepup_provider' => (string)$this->stepupProvider, |
|
| 115 | + 'identity_id' => (string) $this->identityId, |
|
| 116 | + 'identity_institution' => (string) $this->identityInstitution, |
|
| 117 | + 'second_factor_id' => (string) $this->secondFactorId, |
|
| 118 | + 'stepup_provider' => (string) $this->stepupProvider, |
|
| 119 | 119 | 'email_verification_required' => $this->emailVerificationRequired, |
| 120 | 120 | 'email_verification_window' => $this->emailVerificationWindow->serialize(), |
| 121 | 121 | 'email_verification_nonce' => $this->emailVerificationNonce, |
| 122 | - 'preferred_locale' => (string)$this->preferredLocale, |
|
| 122 | + 'preferred_locale' => (string) $this->preferredLocale, |
|
| 123 | 123 | ]; |
| 124 | 124 | } |
| 125 | 125 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | return (new SensitiveData) |
| 129 | 129 | ->withCommonName($this->commonName) |
| 130 | 130 | ->withEmail($this->email) |
| 131 | - ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string)$this->stepupProvider)); |
|
| 131 | + ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider)); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | public function setSensitiveData(SensitiveData $sensitiveData): void |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | |
| 119 | 119 | public function serialize(): array |
| 120 | 120 | { |
| 121 | - return array_map(fn(Institution $institution): string => (string)$institution, $this->elements); |
|
| 121 | + return array_map(fn(Institution $institution): string => (string) $institution, $this->elements); |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | public function getIterator(): Iterator |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | public function __toString(): string |
| 68 | 68 | { |
| 69 | - return (string)json_encode($this->jsonSerialize()); |
|
| 69 | + return (string) json_encode($this->jsonSerialize()); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | public function serialize(): array |