@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Symfony\Component\Dotenv\Dotenv; |
| 4 | 4 | |
| 5 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
| 5 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | -if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) { |
|
| 8 | - require dirname(__DIR__).'/config/bootstrap.php'; |
|
| 7 | +if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) { |
|
| 8 | + require dirname(__DIR__) . '/config/bootstrap.php'; |
|
| 9 | 9 | } elseif (method_exists(Dotenv::class, 'bootEnv')) { |
| 10 | - (new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); |
|
| 10 | + (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); |
|
| 11 | 11 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $institutionConfigurationOptions, |
| 42 | 42 | $raLocations |
| 43 | 43 | ) { |
| 44 | - $optionInstitutions = array_map(function (InstitutionConfigurationOptions $options) { |
|
| 44 | + $optionInstitutions = array_map(function(InstitutionConfigurationOptions $options) { |
|
| 45 | 45 | return $options->institution->getInstitution(); |
| 46 | 46 | }, $institutionConfigurationOptions); |
| 47 | 47 | $mappedConfigurationOptions = array_combine($optionInstitutions, $institutionConfigurationOptions); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | $command->useRaLocationsOption = $this->useRaLocationsOption->isEnabled(); |
| 129 | 129 | $command->showRaaContactInformationOption = $this->showRaaContactInformationOption->isEnabled(); |
| 130 | 130 | $command->verifyEmailOption = $this->verifyEmailOption->isEnabled(); |
| 131 | - $command->selfVetOption= $this->selfVetOption->isEnabled(); |
|
| 131 | + $command->selfVetOption = $this->selfVetOption->isEnabled(); |
|
| 132 | 132 | $command->numberOfTokensPerIdentityOption = $this->numberOfTokensPerIdentityOption->getNumberOfTokensPerIdentity(); |
| 133 | 133 | |
| 134 | 134 | return $command; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $command = new AddRaLocationCommand(); |
| 147 | 147 | $command->UUID = (string) Uuid::uuid4(); |
| 148 | 148 | $command->institution = $institution; |
| 149 | - $command->raLocationId = $raLocation->id ; |
|
| 149 | + $command->raLocationId = $raLocation->id; |
|
| 150 | 150 | $command->raLocationName = $raLocation->name->getRaLocationName(); |
| 151 | 151 | $command->contactInformation = $raLocation->contactInformation->getContactInformation(); |
| 152 | 152 | $command->location = $raLocation->location->getLocation(); |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | $preferredLocale |
| 160 | 160 | ) { |
| 161 | 161 | $command = new CreateIdentityCommand(); |
| 162 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 163 | - $command->id = (string)Uuid::uuid4(); |
|
| 162 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 163 | + $command->id = (string) Uuid::uuid4(); |
|
| 164 | 164 | $command->institution = $institution->getInstitution(); |
| 165 | 165 | $command->nameId = $nameId->getNameId(); |
| 166 | 166 | $command->commonName = $commonName; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | public function proveGsspPossession($secondFactorId, $identity, $tokenType, $tokenIdentifier) |
| 176 | 176 | { |
| 177 | 177 | $command = new ProveGssfPossessionCommand(); |
| 178 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 178 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 179 | 179 | $command->secondFactorId = $secondFactorId; |
| 180 | 180 | $command->identityId = $identity->id; |
| 181 | 181 | $command->stepupProvider = $tokenType; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | public function provePhonePossession($secondFactorId, $identity, $phoneNumber) |
| 188 | 188 | { |
| 189 | 189 | $command = new ProvePhonePossessionCommand(); |
| 190 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 190 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 191 | 191 | $command->secondFactorId = $secondFactorId; |
| 192 | 192 | $command->identityId = $identity->id; |
| 193 | 193 | $command->phoneNumber = $phoneNumber; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | public function proveYubikeyPossession($secondFactorId, $identity, $yubikeyPublicId) |
| 199 | 199 | { |
| 200 | 200 | $command = new ProveYubikeyPossessionCommand(); |
| 201 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 201 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 202 | 202 | $command->secondFactorId = $secondFactorId; |
| 203 | 203 | $command->identityId = $identity->id; |
| 204 | 204 | $command->yubikeyPublicId = $yubikeyPublicId; |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | ); |
| 214 | 214 | |
| 215 | 215 | $command = new VerifyEmailCommand(); |
| 216 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 216 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 217 | 217 | $command->identityId = $identity->id; |
| 218 | 218 | $command->verificationNonce = $unverifiedSecondFactor->verificationNonce; |
| 219 | 219 | |
@@ -223,11 +223,11 @@ discard block |
||
| 223 | 223 | public function migrateVettedSecondFactor(Identity $sourceIdentity, Identity $targetIdentity, VettedSecondFactor $vettedSecondFactor) |
| 224 | 224 | { |
| 225 | 225 | $command = new CommandHandlingMigrateSecondFactorCommand(); |
| 226 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 226 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 227 | 227 | $command->sourceIdentityId = $sourceIdentity->id; |
| 228 | 228 | $command->targetIdentityId = $targetIdentity->id; |
| 229 | 229 | $command->sourceSecondFactorId = $vettedSecondFactor->id; |
| 230 | - $command->targetSecondFactorId = (string)Uuid::uuid4(); |
|
| 230 | + $command->targetSecondFactorId = (string) Uuid::uuid4(); |
|
| 231 | 231 | |
| 232 | 232 | $this->pipeline->process($command); |
| 233 | 233 | } |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | ); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - $rasWithoutRaas = array_filter($ras, function (RegistrationAuthorityCredentials $ra) { |
|
| 136 | + $rasWithoutRaas = array_filter($ras, function(RegistrationAuthorityCredentials $ra) { |
|
| 137 | 137 | return !$ra->isRaa(); |
| 138 | 138 | }); |
| 139 | 139 | |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - $increments = (int)$input->getOption('increments'); |
|
| 102 | + $increments = (int) $input->getOption('increments'); |
|
| 103 | 103 | if ($increments < 1) { |
| 104 | 104 | $output->writeln( |
| 105 | 105 | $formatter->formatBlock( |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | ->info('The amount of seconds after which the email verification url/code expires') |
| 36 | 36 | ->defaultValue(3600) |
| 37 | 37 | ->validate() |
| 38 | - ->ifTrue(function ($seconds) { |
|
| 38 | + ->ifTrue(function($seconds) { |
|
| 39 | 39 | return !is_int($seconds) || $seconds < 1; |
| 40 | 40 | }) |
| 41 | 41 | ->thenInvalid( |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function formatAsEventStreamTypes() |
| 59 | 59 | { |
| 60 | 60 | return array_map( |
| 61 | - function ($eventName) { |
|
| 61 | + function($eventName) { |
|
| 62 | 62 | return strtr($eventName, '\\', '.'); |
| 63 | 63 | }, |
| 64 | 64 | $this->eventNames |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | public function getProjectorNames() |
| 45 | 45 | { |
| 46 | 46 | return array_map( |
| 47 | - function (ProjectorInterface $projector) { |
|
| 47 | + function(ProjectorInterface $projector) { |
|
| 48 | 48 | return get_class($projector); |
| 49 | 49 | }, |
| 50 | 50 | array_values($this->projectors) |