@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | 'commonName' => $commonName, |
| 159 | 159 | 'emailAddress' => $email, |
| 160 | 160 | 'registrationCode' => $registrationCode, |
| 161 | - 'expirationDate' => (string)$expirationDate, |
|
| 161 | + 'expirationDate' => (string) $expirationDate, |
|
| 162 | 162 | 'ras' => $ras, |
| 163 | 163 | 'selfServiceUrl' => $this->selfServiceUrl, |
| 164 | 164 | ]; |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'commonName' => $commonName, |
| 209 | 209 | 'emailAddress' => $email, |
| 210 | 210 | 'registrationCode' => $registrationCode, |
| 211 | - 'expirationDate' => (string)$expirationDate, |
|
| 211 | + 'expirationDate' => (string) $expirationDate, |
|
| 212 | 212 | 'raLocations' => $raLocations, |
| 213 | 213 | 'selfServiceUrl' => $this->selfServiceUrl, |
| 214 | 214 | ]; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | public function findBy(Institution $institution): VettingTypeHintEntity |
| 63 | 63 | { |
| 64 | - $result = $this->repository->find((string)$institution); |
|
| 64 | + $result = $this->repository->find((string) $institution); |
|
| 65 | 65 | if (!$result) { |
| 66 | 66 | throw new NotFoundException(sprintf('Vetting type hint not found for institution %s', $institution)); |
| 67 | 67 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | ->isRequired() |
| 34 | 34 | ->info('Configures the URL where registrants can verify e-mail address ownership.') |
| 35 | 35 | ->validate() |
| 36 | - ->ifTrue(function ($url): bool { |
|
| 36 | + ->ifTrue(function($url): bool { |
|
| 37 | 37 | $parts = parse_url($url); |
| 38 | 38 | |
| 39 | 39 | return empty($parts['scheme']) || empty($parts['host']) || empty($parts['path']); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | . '"%s" is already registered at that position', |
| 46 | 46 | $stageServiceId, |
| 47 | 47 | $tagAttributes['priority'], |
| 48 | - (string)$prioritized[$priority], |
|
| 48 | + (string) $prioritized[$priority], |
|
| 49 | 49 | ), |
| 50 | 50 | ); |
| 51 | 51 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | private function createConfigurationFor(Institution $institution): void |
| 96 | 96 | { |
| 97 | 97 | $command = new CreateInstitutionConfigurationCommand(); |
| 98 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 98 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 99 | 99 | $command->institution = $institution->getInstitution(); |
| 100 | 100 | |
| 101 | 101 | $this->pipeline->process($command); |
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | if ($event->emailVerificationRequired) { |
| 37 | 37 | $this->emailVerificationMailService->sendEmailVerificationEmail( |
| 38 | - (string)$event->preferredLocale, |
|
| 39 | - (string)$event->commonName, |
|
| 40 | - (string)$event->email, |
|
| 38 | + (string) $event->preferredLocale, |
|
| 39 | + (string) $event->commonName, |
|
| 40 | + (string) $event->email, |
|
| 41 | 41 | $event->emailVerificationNonce, |
| 42 | 42 | ); |
| 43 | 43 | } |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | if ($event->emailVerificationRequired) { |
| 49 | 49 | $this->emailVerificationMailService->sendEmailVerificationEmail( |
| 50 | - (string)$event->preferredLocale, |
|
| 51 | - (string)$event->commonName, |
|
| 52 | - (string)$event->email, |
|
| 50 | + (string) $event->preferredLocale, |
|
| 51 | + (string) $event->commonName, |
|
| 52 | + (string) $event->email, |
|
| 53 | 53 | $event->emailVerificationNonce, |
| 54 | 54 | ); |
| 55 | 55 | } |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | if ($event->emailVerificationRequired) { |
| 61 | 61 | $this->emailVerificationMailService->sendEmailVerificationEmail( |
| 62 | - (string)$event->preferredLocale, |
|
| 63 | - (string)$event->commonName, |
|
| 64 | - (string)$event->email, |
|
| 62 | + (string) $event->preferredLocale, |
|
| 63 | + (string) $event->commonName, |
|
| 64 | + (string) $event->email, |
|
| 65 | 65 | $event->emailVerificationNonce, |
| 66 | 66 | ); |
| 67 | 67 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | public function inferRemoveInstitutionConfigurationByIdCommand(): RemoveInstitutionConfigurationByUnnormalizedIdCommand |
| 47 | 47 | { |
| 48 | 48 | $command = new RemoveInstitutionConfigurationByUnnormalizedIdCommand(); |
| 49 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 49 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 50 | 50 | $command->institution = $this->institution->getInstitution(); |
| 51 | 51 | |
| 52 | 52 | return $command; |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | public function inferCreateInstitutionConfigurationCommand(): CreateInstitutionConfigurationCommand |
| 56 | 56 | { |
| 57 | 57 | $command = new CreateInstitutionConfigurationCommand(); |
| 58 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 58 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 59 | 59 | $command->institution = $this->institution->getInstitution(); |
| 60 | 60 | |
| 61 | 61 | return $command; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function inferReconfigureInstitutionConfigurationCommand(): ReconfigureInstitutionConfigurationOptionsCommand |
| 65 | 65 | { |
| 66 | 66 | $command = new ReconfigureInstitutionConfigurationOptionsCommand(); |
| 67 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 67 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 68 | 68 | $command->institution = $this->institution->getInstitution(); |
| 69 | 69 | $command->useRaLocationsOption = $this->useRaLocationsOption->isEnabled(); |
| 70 | 70 | $command->showRaaContactInformationOption = $this->showRaaContactInformationOption->isEnabled(); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | foreach ($this->raLocations as $raLocation) { |
| 88 | 88 | $command = new AddRaLocationCommand(); |
| 89 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 89 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 90 | 90 | $command->institution = $institution; |
| 91 | 91 | $command->raLocationId = $raLocation->id; |
| 92 | 92 | $command->raLocationName = $raLocation->name->getRaLocationName(); |
@@ -110,16 +110,16 @@ |
||
| 110 | 110 | |
| 111 | 111 | private function deserializeEvent(array $row): DomainMessage |
| 112 | 112 | { |
| 113 | - $event = $this->payloadSerializer->deserialize(json_decode((string)$row['payload'], true)); |
|
| 113 | + $event = $this->payloadSerializer->deserialize(json_decode((string) $row['payload'], true)); |
|
| 114 | 114 | |
| 115 | 115 | if ($event instanceof Forgettable) { |
| 116 | - $event->setSensitiveData(SensitiveData::deserialize(json_decode((string)$row['sensitive_data'], true))); |
|
| 116 | + $event->setSensitiveData(SensitiveData::deserialize(json_decode((string) $row['sensitive_data'], true))); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | return new DomainMessage( |
| 120 | 120 | $row['uuid'], |
| 121 | 121 | $row['playhead'], |
| 122 | - $this->metadataSerializer->deserialize(json_decode((string)$row['metadata'], true)), |
|
| 122 | + $this->metadataSerializer->deserialize(json_decode((string) $row['metadata'], true)), |
|
| 123 | 123 | $event, |
| 124 | 124 | DateTime::fromString($row['recorded_on']), |
| 125 | 125 | ); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | ); |
| 108 | 108 | |
| 109 | 109 | $command = new VetSecondFactorCommand(); |
| 110 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 110 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 111 | 111 | $command->authorityId = $actorId; |
| 112 | 112 | $command->identityId = $identity->id; |
| 113 | 113 | $command->secondFactorId = $secondFactorId; |
@@ -128,8 +128,8 @@ discard block |
||
| 128 | 128 | string $preferredLocale, |
| 129 | 129 | ): CreateIdentityCommand { |
| 130 | 130 | $command = new CreateIdentityCommand(); |
| 131 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 132 | - $command->id = (string)Uuid::uuid4(); |
|
| 131 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 132 | + $command->id = (string) Uuid::uuid4(); |
|
| 133 | 133 | $command->institution = $institution->getInstitution(); |
| 134 | 134 | $command->nameId = $nameId->getNameId(); |
| 135 | 135 | $command->commonName = $commonName; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | string $tokenIdentifier |
| 149 | 149 | ): void { |
| 150 | 150 | $command = new ProveGssfPossessionCommand(); |
| 151 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 151 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 152 | 152 | $command->secondFactorId = $secondFactorId; |
| 153 | 153 | $command->identityId = $identity->id; |
| 154 | 154 | $command->stepupProvider = $tokenType; |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | string $phoneNumber |
| 164 | 164 | ): void { |
| 165 | 165 | $command = new ProvePhonePossessionCommand(); |
| 166 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 166 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 167 | 167 | $command->secondFactorId = $secondFactorId; |
| 168 | 168 | $command->identityId = $identity->id; |
| 169 | 169 | $command->phoneNumber = $phoneNumber; |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | string $yubikeyPublicId |
| 178 | 178 | ): void { |
| 179 | 179 | $command = new ProveYubikeyPossessionCommand(); |
| 180 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 180 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 181 | 181 | $command->secondFactorId = $secondFactorId; |
| 182 | 182 | $command->identityId = $identity->id; |
| 183 | 183 | $command->yubikeyPublicId = $yubikeyPublicId; |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | ); |
| 195 | 195 | |
| 196 | 196 | $command = new VerifyEmailCommand(); |
| 197 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 197 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 198 | 198 | $command->identityId = $identity->id; |
| 199 | 199 | $command->verificationNonce = $unverifiedSecondFactor->verificationNonce; |
| 200 | 200 | |
@@ -207,11 +207,11 @@ discard block |
||
| 207 | 207 | VettedSecondFactor $vettedSecondFactor, |
| 208 | 208 | ): void { |
| 209 | 209 | $command = new CommandHandlingMigrateSecondFactorCommand(); |
| 210 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 210 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 211 | 211 | $command->sourceIdentityId = $sourceIdentity->id; |
| 212 | 212 | $command->targetIdentityId = $targetIdentity->id; |
| 213 | 213 | $command->sourceSecondFactorId = $vettedSecondFactor->id; |
| 214 | - $command->targetSecondFactorId = (string)Uuid::uuid4(); |
|
| 214 | + $command->targetSecondFactorId = (string) Uuid::uuid4(); |
|
| 215 | 215 | |
| 216 | 216 | $this->pipeline->process($command); |
| 217 | 217 | } |