@@ -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 | } |
@@ -49,11 +49,11 @@ |
||
| 49 | 49 | // localizeddate('full', 'none', locale) |
| 50 | 50 | public function localizedDate( |
| 51 | 51 | Environment $env, |
| 52 | - DateTimeInterface|string|null $date, |
|
| 52 | + DateTimeInterface | string | null $date, |
|
| 53 | 53 | ?string $dateFormat = 'medium', |
| 54 | 54 | ?string $timeFormat = 'medium', |
| 55 | 55 | string $locale = null |
| 56 | 56 | ): string { |
| 57 | - return $this->intlExtension->formatDateTime($env, $date, $dateFormat, $timeFormat, locale: $locale); |
|
| 57 | + return $this->intlExtension->formatDateTime($env, $date, $dateFormat, $timeFormat, locale : $locale); |
|
| 58 | 58 | } |
| 59 | 59 | } |
@@ -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 | } |
@@ -79,14 +79,14 @@ |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | $command = new BootstrapIdentityWithYubikeySecondFactorIdentityCommand(); |
| 82 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 83 | - $command->identityId = (string)Uuid::uuid4(); |
|
| 82 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 83 | + $command->identityId = (string) Uuid::uuid4(); |
|
| 84 | 84 | $command->nameId = $input->getArgument('name-id'); |
| 85 | 85 | $command->institution = $input->getArgument('institution'); |
| 86 | 86 | $command->commonName = $input->getArgument('common-name'); |
| 87 | 87 | $command->email = $input->getArgument('email'); |
| 88 | 88 | $command->preferredLocale = $input->getArgument('preferred-locale'); |
| 89 | - $secondFactorId = (string)Uuid::uuid4(); |
|
| 89 | + $secondFactorId = (string) Uuid::uuid4(); |
|
| 90 | 90 | $command->secondFactorId = $secondFactorId; |
| 91 | 91 | $command->yubikeyPublicId = $input->getArgument('yubikey'); |
| 92 | 92 | |
@@ -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 | } |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | |
| 157 | 157 | $output->writeln(['', '<info>Done</info>', '']); |
| 158 | 158 | } catch (Throwable $e) { |
| 159 | - echo $e->getMessage()."\n"; |
|
| 159 | + echo $e->getMessage() . "\n"; |
|
| 160 | 160 | |
| 161 | 161 | $this->connectionHelper->rollBack(); |
| 162 | 162 | if (isset($replayProgress)) { |