@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | sprintf( |
| 52 | 52 | "Encountered illegal second factor status of type %s '%s', expected a SecondFactorStatus instance", |
| 53 | 53 | get_debug_type($value), |
| 54 | - is_scalar($value) ? (string)$value : '', |
|
| 54 | + is_scalar($value) ? (string) $value : '', |
|
| 55 | 55 | ), |
| 56 | 56 | ); |
| 57 | 57 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | return 40; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value)); |
|
| 71 | + throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value)); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): SecondFactorStatus |
| 78 | 78 | { |
| 79 | 79 | if (is_scalar($value)) { |
| 80 | - $value = (string)$value; |
|
| 80 | + $value = (string) $value; |
|
| 81 | 81 | } |
| 82 | 82 | if ($value === '0') { |
| 83 | 83 | return SecondFactorStatus::unverified(); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | sprintf( |
| 46 | 46 | "Encountered illegal recovery token status of type %s '%s', expected a RecoveryTokenStatus instance", |
| 47 | 47 | get_debug_type($value), |
| 48 | - is_scalar($value) ? (string)$value : '', |
|
| 48 | + is_scalar($value) ? (string) $value : '', |
|
| 49 | 49 | ), |
| 50 | 50 | ); |
| 51 | 51 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | return 20; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value)); |
|
| 61 | + throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value)); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): RecoveryTokenStatus |
| 68 | 68 | { |
| 69 | 69 | if (is_scalar($value)) { |
| 70 | - $value = (string)$value; |
|
| 70 | + $value = (string) $value; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | if ($value === '0') { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | $this->whitelistedInstitutions = array_map( |
| 238 | - fn(WhitelistEntry $whitelistEntry): string => (string)$whitelistEntry->institution, |
|
| 238 | + fn(WhitelistEntry $whitelistEntry): string => (string) $whitelistEntry->institution, |
|
| 239 | 239 | $this->whitelistService->getAllEntries()->toArray(), |
| 240 | 240 | ); |
| 241 | 241 | |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | |
| 257 | 257 | return array_filter( |
| 258 | 258 | $institutions, |
| 259 | - function ($institution) use ($normalizedConfiguredInstitutions): bool { |
|
| 259 | + function($institution) use ($normalizedConfiguredInstitutions): bool { |
|
| 260 | 260 | $normalizedInstitution = strtolower($institution); |
| 261 | 261 | |
| 262 | 262 | return !in_array($normalizedInstitution, $normalizedConfiguredInstitutions); |
@@ -42,11 +42,11 @@ |
||
| 42 | 42 | #[AsTwigFilter('localizeddate', needsEnvironment: true)] |
| 43 | 43 | public function localizedDate( |
| 44 | 44 | Environment $env, |
| 45 | - DateTimeInterface|string|null $date, |
|
| 45 | + DateTimeInterface | string | null $date, |
|
| 46 | 46 | ?string $dateFormat = 'medium', |
| 47 | 47 | ?string $timeFormat = 'medium', |
| 48 | 48 | string $locale = null |
| 49 | 49 | ): string { |
| 50 | - return $this->intlExtension->formatDateTime($env, $date, $dateFormat, $timeFormat, locale: $locale); |
|
| 50 | + return $this->intlExtension->formatDateTime($env, $date, $dateFormat, $timeFormat, locale : $locale); |
|
| 51 | 51 | } |
| 52 | 52 | } |
@@ -74,14 +74,14 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $command = new BootstrapIdentityWithYubikeySecondFactorIdentityCommand(); |
| 77 | - $command->UUID = (string)Uuid::uuid4(); |
|
| 78 | - $command->identityId = (string)Uuid::uuid4(); |
|
| 77 | + $command->UUID = (string) Uuid::uuid4(); |
|
| 78 | + $command->identityId = (string) Uuid::uuid4(); |
|
| 79 | 79 | $command->nameId = $nameId; |
| 80 | 80 | $command->institution = $institution; |
| 81 | 81 | $command->commonName = $commonName; |
| 82 | 82 | $command->email = $email; |
| 83 | 83 | $command->preferredLocale = $preferredLocale; |
| 84 | - $secondFactorId = (string)Uuid::uuid4(); |
|
| 84 | + $secondFactorId = (string) Uuid::uuid4(); |
|
| 85 | 85 | $command->secondFactorId = $secondFactorId; |
| 86 | 86 | $command->yubikeyPublicId = $yubikey; |
| 87 | 87 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | string $newNameId, |
| 49 | 49 | #[Argument(description: 'The institution of the target identity', name: 'target-institution')] |
| 50 | 50 | ?string $targetInstitution, |
| 51 | - #[Argument(description: 'The e-mail address of the identity to create', name: 'email')] |
|
| 51 | + #[Argument(description : 'The e-mail address of the identity to create', name : 'email')] |
|
| 52 | 52 | ?string $email, |
| 53 | 53 | OutputInterface $output |
| 54 | 54 | ): int { |