@@ -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 | } |
@@ -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(); |