@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | public function up(Schema $schema): void |
| 21 | 21 | { |
| 22 | - $gatewaySchema = $this->getGatewaySchema(); |
|
| 22 | + $gatewaySchema = $this->getGatewaySchema(); |
|
| 23 | 23 | |
| 24 | 24 | // this up() migration is auto-generated, please modify it to your needs |
| 25 | 25 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | public function down(Schema $schema): void |
| 34 | 34 | { |
| 35 | - $gatewaySchema = $this->getGatewaySchema(); |
|
| 35 | + $gatewaySchema = $this->getGatewaySchema(); |
|
| 36 | 36 | |
| 37 | 37 | // this down() migration is auto-generated, please modify it to your needs |
| 38 | 38 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | $recoveryToken = $this->recoveryTokens->get($recoveryTokenId); |
| 576 | 576 | } catch (DomainException $e) { |
| 577 | 577 | throw new DomainException( |
| 578 | - sprintf('Recovery token used during registration is not possessed by identity %s', (string)$this->id) |
|
| 578 | + sprintf('Recovery token used during registration is not possessed by identity %s', (string) $this->id) |
|
| 579 | 579 | ); |
| 580 | 580 | } |
| 581 | 581 | |
@@ -759,11 +759,11 @@ discard block |
||
| 759 | 759 | $this->assertNotForgotten(); |
| 760 | 760 | |
| 761 | 761 | /** @var UnverifiedSecondFactor|null $unverifiedSecondFactor */ |
| 762 | - $unverifiedSecondFactor = $this->unverifiedSecondFactors->get((string)$secondFactorId); |
|
| 762 | + $unverifiedSecondFactor = $this->unverifiedSecondFactors->get((string) $secondFactorId); |
|
| 763 | 763 | /** @var VerifiedSecondFactor|null $verifiedSecondFactor */ |
| 764 | - $verifiedSecondFactor = $this->verifiedSecondFactors->get((string)$secondFactorId); |
|
| 764 | + $verifiedSecondFactor = $this->verifiedSecondFactors->get((string) $secondFactorId); |
|
| 765 | 765 | /** @var VettedSecondFactor|null $vettedSecondFactor */ |
| 766 | - $vettedSecondFactor = $this->vettedSecondFactors->get((string)$secondFactorId); |
|
| 766 | + $vettedSecondFactor = $this->vettedSecondFactors->get((string) $secondFactorId); |
|
| 767 | 767 | |
| 768 | 768 | if (!$unverifiedSecondFactor && !$verifiedSecondFactor && !$vettedSecondFactor) { |
| 769 | 769 | throw new DomainException('Cannot revoke second factor: no second factor with given id exists.'); |
@@ -793,11 +793,11 @@ discard block |
||
| 793 | 793 | $this->assertNotForgotten(); |
| 794 | 794 | |
| 795 | 795 | /** @var UnverifiedSecondFactor|null $unverifiedSecondFactor */ |
| 796 | - $unverifiedSecondFactor = $this->unverifiedSecondFactors->get((string)$secondFactorId); |
|
| 796 | + $unverifiedSecondFactor = $this->unverifiedSecondFactors->get((string) $secondFactorId); |
|
| 797 | 797 | /** @var VerifiedSecondFactor|null $verifiedSecondFactor */ |
| 798 | - $verifiedSecondFactor = $this->verifiedSecondFactors->get((string)$secondFactorId); |
|
| 798 | + $verifiedSecondFactor = $this->verifiedSecondFactors->get((string) $secondFactorId); |
|
| 799 | 799 | /** @var VettedSecondFactor|null $vettedSecondFactor */ |
| 800 | - $vettedSecondFactor = $this->vettedSecondFactors->get((string)$secondFactorId); |
|
| 800 | + $vettedSecondFactor = $this->vettedSecondFactors->get((string) $secondFactorId); |
|
| 801 | 801 | |
| 802 | 802 | if (!$unverifiedSecondFactor && !$verifiedSecondFactor && !$vettedSecondFactor) { |
| 803 | 803 | throw new DomainException('Cannot revoke second factor: no second factor with given id exists.'); |
@@ -1044,7 +1044,7 @@ discard block |
||
| 1044 | 1044 | new UnknownVettingType() |
| 1045 | 1045 | ); |
| 1046 | 1046 | |
| 1047 | - $this->vettedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1047 | + $this->vettedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1048 | 1048 | } |
| 1049 | 1049 | |
| 1050 | 1050 | protected function applyYubikeyPossessionProvenEvent(YubikeyPossessionProvenEvent $event) |
@@ -1058,7 +1058,7 @@ discard block |
||
| 1058 | 1058 | $event->emailVerificationNonce |
| 1059 | 1059 | ); |
| 1060 | 1060 | |
| 1061 | - $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1061 | + $this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1062 | 1062 | } |
| 1063 | 1063 | |
| 1064 | 1064 | protected function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event) |
@@ -1072,7 +1072,7 @@ discard block |
||
| 1072 | 1072 | $event->registrationCode |
| 1073 | 1073 | ); |
| 1074 | 1074 | |
| 1075 | - $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1075 | + $this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1076 | 1076 | } |
| 1077 | 1077 | |
| 1078 | 1078 | protected function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
@@ -1086,7 +1086,7 @@ discard block |
||
| 1086 | 1086 | $event->emailVerificationNonce |
| 1087 | 1087 | ); |
| 1088 | 1088 | |
| 1089 | - $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1089 | + $this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1090 | 1090 | } |
| 1091 | 1091 | |
| 1092 | 1092 | protected function applyPhonePossessionProvenAndVerifiedEvent(PhonePossessionProvenAndVerifiedEvent $event) |
@@ -1100,7 +1100,7 @@ discard block |
||
| 1100 | 1100 | $event->registrationCode |
| 1101 | 1101 | ); |
| 1102 | 1102 | |
| 1103 | - $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1103 | + $this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1104 | 1104 | } |
| 1105 | 1105 | |
| 1106 | 1106 | protected function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
@@ -1108,13 +1108,13 @@ discard block |
||
| 1108 | 1108 | $secondFactor = UnverifiedSecondFactor::create( |
| 1109 | 1109 | $event->secondFactorId, |
| 1110 | 1110 | $this, |
| 1111 | - new SecondFactorType((string)$event->stepupProvider), |
|
| 1111 | + new SecondFactorType((string) $event->stepupProvider), |
|
| 1112 | 1112 | $event->gssfId, |
| 1113 | 1113 | $event->emailVerificationWindow, |
| 1114 | 1114 | $event->emailVerificationNonce |
| 1115 | 1115 | ); |
| 1116 | 1116 | |
| 1117 | - $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1117 | + $this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1118 | 1118 | } |
| 1119 | 1119 | |
| 1120 | 1120 | protected function applyGssfPossessionProvenAndVerifiedEvent(GssfPossessionProvenAndVerifiedEvent $event) |
@@ -1122,13 +1122,13 @@ discard block |
||
| 1122 | 1122 | $secondFactor = VerifiedSecondFactor::create( |
| 1123 | 1123 | $event->secondFactorId, |
| 1124 | 1124 | $this, |
| 1125 | - new SecondFactorType((string)$event->stepupProvider), |
|
| 1125 | + new SecondFactorType((string) $event->stepupProvider), |
|
| 1126 | 1126 | $event->gssfId, |
| 1127 | 1127 | $event->registrationRequestedAt, |
| 1128 | 1128 | $event->registrationCode |
| 1129 | 1129 | ); |
| 1130 | 1130 | |
| 1131 | - $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1131 | + $this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1132 | 1132 | } |
| 1133 | 1133 | |
| 1134 | 1134 | protected function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event) |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | $event->emailVerificationNonce |
| 1143 | 1143 | ); |
| 1144 | 1144 | |
| 1145 | - $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1145 | + $this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1146 | 1146 | } |
| 1147 | 1147 | |
| 1148 | 1148 | protected function applyU2fDevicePossessionProvenAndVerifiedEvent(U2fDevicePossessionProvenAndVerifiedEvent $event) |
@@ -1156,7 +1156,7 @@ discard block |
||
| 1156 | 1156 | $event->registrationCode |
| 1157 | 1157 | ); |
| 1158 | 1158 | |
| 1159 | - $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
| 1159 | + $this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
|
| 1160 | 1160 | } |
| 1161 | 1161 | |
| 1162 | 1162 | protected function applyPhoneRecoveryTokenPossessionProvenEvent(PhoneRecoveryTokenPossessionProvenEvent $event) |
@@ -1175,7 +1175,7 @@ discard block |
||
| 1175 | 1175 | |
| 1176 | 1176 | protected function applyEmailVerifiedEvent(EmailVerifiedEvent $event) |
| 1177 | 1177 | { |
| 1178 | - $secondFactorId = (string)$event->secondFactorId; |
|
| 1178 | + $secondFactorId = (string) $event->secondFactorId; |
|
| 1179 | 1179 | |
| 1180 | 1180 | /** @var UnverifiedSecondFactor $unverified */ |
| 1181 | 1181 | $unverified = $this->unverifiedSecondFactors->get($secondFactorId); |
@@ -1192,7 +1192,7 @@ discard block |
||
| 1192 | 1192 | */ |
| 1193 | 1193 | public function applySecondFactorMigratedEvent(SecondFactorMigratedEvent $event) |
| 1194 | 1194 | { |
| 1195 | - $secondFactorId = (string)$event->newSecondFactorId; |
|
| 1195 | + $secondFactorId = (string) $event->newSecondFactorId; |
|
| 1196 | 1196 | $vetted = VettedSecondFactor::create( |
| 1197 | 1197 | $event->newSecondFactorId, |
| 1198 | 1198 | $this, |
@@ -1205,7 +1205,7 @@ discard block |
||
| 1205 | 1205 | |
| 1206 | 1206 | protected function applySecondFactorVettedEvent(SecondFactorVettedEvent $event) |
| 1207 | 1207 | { |
| 1208 | - $secondFactorId = (string)$event->secondFactorId; |
|
| 1208 | + $secondFactorId = (string) $event->secondFactorId; |
|
| 1209 | 1209 | $verified = $this->verifiedSecondFactors->get($secondFactorId); |
| 1210 | 1210 | $vetted = $verified->asVetted($event->vettingType); |
| 1211 | 1211 | $this->verifiedSecondFactors->remove($secondFactorId); |
@@ -1214,7 +1214,7 @@ discard block |
||
| 1214 | 1214 | |
| 1215 | 1215 | protected function applySecondFactorVettedWithoutTokenProofOfPossession(SecondFactorVettedWithoutTokenProofOfPossession $event) |
| 1216 | 1216 | { |
| 1217 | - $secondFactorId = (string)$event->secondFactorId; |
|
| 1217 | + $secondFactorId = (string) $event->secondFactorId; |
|
| 1218 | 1218 | |
| 1219 | 1219 | /** @var VerifiedSecondFactor $verified */ |
| 1220 | 1220 | $verified = $this->verifiedSecondFactors->get($secondFactorId); |
@@ -1226,35 +1226,35 @@ discard block |
||
| 1226 | 1226 | |
| 1227 | 1227 | protected function applyUnverifiedSecondFactorRevokedEvent(UnverifiedSecondFactorRevokedEvent $event) |
| 1228 | 1228 | { |
| 1229 | - $this->unverifiedSecondFactors->remove((string)$event->secondFactorId); |
|
| 1229 | + $this->unverifiedSecondFactors->remove((string) $event->secondFactorId); |
|
| 1230 | 1230 | } |
| 1231 | 1231 | |
| 1232 | 1232 | protected function applyCompliedWithUnverifiedSecondFactorRevocationEvent( |
| 1233 | 1233 | CompliedWithUnverifiedSecondFactorRevocationEvent $event |
| 1234 | 1234 | ) { |
| 1235 | - $this->unverifiedSecondFactors->remove((string)$event->secondFactorId); |
|
| 1235 | + $this->unverifiedSecondFactors->remove((string) $event->secondFactorId); |
|
| 1236 | 1236 | } |
| 1237 | 1237 | |
| 1238 | 1238 | protected function applyVerifiedSecondFactorRevokedEvent(VerifiedSecondFactorRevokedEvent $event) |
| 1239 | 1239 | { |
| 1240 | - $this->verifiedSecondFactors->remove((string)$event->secondFactorId); |
|
| 1240 | + $this->verifiedSecondFactors->remove((string) $event->secondFactorId); |
|
| 1241 | 1241 | } |
| 1242 | 1242 | |
| 1243 | 1243 | protected function applyCompliedWithVerifiedSecondFactorRevocationEvent( |
| 1244 | 1244 | CompliedWithVerifiedSecondFactorRevocationEvent $event |
| 1245 | 1245 | ) { |
| 1246 | - $this->verifiedSecondFactors->remove((string)$event->secondFactorId); |
|
| 1246 | + $this->verifiedSecondFactors->remove((string) $event->secondFactorId); |
|
| 1247 | 1247 | } |
| 1248 | 1248 | |
| 1249 | 1249 | protected function applyVettedSecondFactorRevokedEvent(VettedSecondFactorRevokedEvent $event) |
| 1250 | 1250 | { |
| 1251 | - $this->vettedSecondFactors->remove((string)$event->secondFactorId); |
|
| 1251 | + $this->vettedSecondFactors->remove((string) $event->secondFactorId); |
|
| 1252 | 1252 | } |
| 1253 | 1253 | |
| 1254 | 1254 | protected function applyCompliedWithVettedSecondFactorRevocationEvent( |
| 1255 | 1255 | CompliedWithVettedSecondFactorRevocationEvent $event |
| 1256 | 1256 | ) { |
| 1257 | - $this->vettedSecondFactors->remove((string)$event->secondFactorId); |
|
| 1257 | + $this->vettedSecondFactors->remove((string) $event->secondFactorId); |
|
| 1258 | 1258 | } |
| 1259 | 1259 | |
| 1260 | 1260 | protected function applyCompliedWithRecoveryCodeRevocationEvent(CompliedWithRecoveryCodeRevocationEvent $event) |
@@ -1486,12 +1486,12 @@ discard block |
||
| 1486 | 1486 | |
| 1487 | 1487 | public function getVerifiedSecondFactor(SecondFactorId $secondFactorId): ?VerifiedSecondFactor |
| 1488 | 1488 | { |
| 1489 | - return $this->verifiedSecondFactors->get((string)$secondFactorId); |
|
| 1489 | + return $this->verifiedSecondFactors->get((string) $secondFactorId); |
|
| 1490 | 1490 | } |
| 1491 | 1491 | |
| 1492 | 1492 | public function getVettedSecondFactorById(SecondFactorId $secondFactorId): ?VettedSecondFactor |
| 1493 | 1493 | { |
| 1494 | - return $this->vettedSecondFactors->get((string)$secondFactorId); |
|
| 1494 | + return $this->vettedSecondFactors->get((string) $secondFactorId); |
|
| 1495 | 1495 | } |
| 1496 | 1496 | |
| 1497 | 1497 | private function assertTokenNotAlreadyRegistered(SecondFactorType $type, SecondFactorIdentifier $identifier) |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | { |
| 54 | 54 | return [ |
| 55 | 55 | 'type' => $this->type(), |
| 56 | - 'recovery_token_id' => (string)$this->authoringRecoveryToken, |
|
| 56 | + 'recovery_token_id' => (string) $this->authoringRecoveryToken, |
|
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function set(Institution $institution) |
| 36 | 36 | { |
| 37 | - $this->institutions[(string)$institution] = $institution; |
|
| 37 | + $this->institutions[(string) $institution] = $institution; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function update(Institutions $institutions) |
| 44 | 44 | { |
| 45 | 45 | foreach ($institutions as $institution) { |
| 46 | - $this->institutions[(string)$institutions] = $institution; |
|
| 46 | + $this->institutions[(string) $institutions] = $institution; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function get(Institution $institution) |
| 55 | 55 | { |
| 56 | - return $this->institutions[(string)$institution]; |
|
| 56 | + return $this->institutions[(string) $institution]; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function exists(Institution $institution) |
| 64 | 64 | { |
| 65 | - return array_key_exists((string)$institution, $this->institutions); |
|
| 65 | + return array_key_exists((string) $institution, $this->institutions); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function remove(Institution $institution) |
| 72 | 72 | { |
| 73 | - unset($this->institutions[(string)$institution]); |
|
| 73 | + unset($this->institutions[(string) $institution]); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -31,15 +31,15 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public function set(RecoveryToken $recoveryToken): void |
| 33 | 33 | { |
| 34 | - $this->recoveryTokens[(string)$recoveryToken->getTokenId()] = $recoveryToken; |
|
| 34 | + $this->recoveryTokens[(string) $recoveryToken->getTokenId()] = $recoveryToken; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | public function get(RecoveryTokenId $id): RecoveryToken |
| 38 | 38 | { |
| 39 | - if (!array_key_exists((string)$id, $this->recoveryTokens)) { |
|
| 39 | + if (!array_key_exists((string) $id, $this->recoveryTokens)) { |
|
| 40 | 40 | throw new DomainException(sprintf('Unable to find recovery token with id %s', $id)); |
| 41 | 41 | } |
| 42 | - return $this->recoveryTokens[(string)$id]; |
|
| 42 | + return $this->recoveryTokens[(string) $id]; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | public function hasType(RecoveryTokenType $type) |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | public function remove(RecoveryTokenId $recoveryTokenId) |
| 61 | 61 | { |
| 62 | - unset($this->recoveryTokens[(string)$recoveryTokenId]); |
|
| 62 | + unset($this->recoveryTokens[(string) $recoveryTokenId]); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | public function first(): RecoveryToken |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | return new self( |
| 70 | 70 | TimeFrame::ofSeconds($emailVerificationTimeFrame), |
| 71 | 71 | array_map( |
| 72 | - function ($locale) { |
|
| 72 | + function($locale) { |
|
| 73 | 73 | return new Locale($locale); |
| 74 | 74 | }, |
| 75 | 75 | $locales |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | { |
| 97 | 97 | return array_reduce( |
| 98 | 98 | $this->locales, |
| 99 | - function ($supported, Locale $supportedLocale) use ($locale) { |
|
| 99 | + function($supported, Locale $supportedLocale) use ($locale) { |
|
| 100 | 100 | return $supported || $supportedLocale->equals($locale); |
| 101 | 101 | }, |
| 102 | 102 | false |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function set(Institution $institution, RegistrationAuthority $registrationAuthority) |
| 35 | 35 | { |
| 36 | - $this->registrationAuthorities[(string)$institution] = $registrationAuthority; |
|
| 36 | + $this->registrationAuthorities[(string) $institution] = $registrationAuthority; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function get(Institution $institution) |
| 44 | 44 | { |
| 45 | - return $this->registrationAuthorities[(string)$institution]; |
|
| 45 | + return $this->registrationAuthorities[(string) $institution]; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function exists(Institution $institution) |
| 53 | 53 | { |
| 54 | - return array_key_exists((string)$institution, $this->registrationAuthorities); |
|
| 54 | + return array_key_exists((string) $institution, $this->registrationAuthorities); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function remove(Institution $institution) |
| 61 | 61 | { |
| 62 | - unset($this->registrationAuthorities[(string)$institution]); |
|
| 62 | + unset($this->registrationAuthorities[(string) $institution]); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | return array_reduce( |
| 33 | 33 | $this->toArray(), |
| 34 | - function (SecondFactor $carry, SecondFactor $item) use ($service) { |
|
| 34 | + function(SecondFactor $carry, SecondFactor $item) use ($service) { |
|
| 35 | 35 | return $service->hasEqualOrHigherLoaComparedTo($carry->getType(), $item->getType()) ? $carry : $item; |
| 36 | 36 | }, |
| 37 | 37 | $this->first() ?: null |
@@ -179,12 +179,12 @@ |
||
| 179 | 179 | public function serialize(): array |
| 180 | 180 | { |
| 181 | 181 | return [ |
| 182 | - 'identity_id' => (string)$this->identityId, |
|
| 183 | - 'source_institution' => (string)$this->sourceInstitution, |
|
| 184 | - 'target_name_id' => (string)$this->targetNameId, |
|
| 185 | - 'identity_institution' => (string)$this->identityInstitution, |
|
| 186 | - 'second_factor_id' => (string)$this->secondFactorId, |
|
| 187 | - 'new_second_factor_id' => (string)$this->newSecondFactorId, |
|
| 182 | + 'identity_id' => (string) $this->identityId, |
|
| 183 | + 'source_institution' => (string) $this->sourceInstitution, |
|
| 184 | + 'target_name_id' => (string) $this->targetNameId, |
|
| 185 | + 'identity_institution' => (string) $this->identityInstitution, |
|
| 186 | + 'second_factor_id' => (string) $this->secondFactorId, |
|
| 187 | + 'new_second_factor_id' => (string) $this->newSecondFactorId, |
|
| 188 | 188 | 'vetting_type' => $this->vettingType->jsonSerialize(), |
| 189 | 189 | 'second_factor_type' => (string) $this->secondFactorType, |
| 190 | 190 | 'preferred_locale' => (string) $this->preferredLocale, |