@@ -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 { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | return null; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - return (string)$value; |
|
| 45 | + return (string) $value; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Email |
@@ -48,12 +48,12 @@ |
||
| 48 | 48 | sprintf( |
| 49 | 49 | "Encountered illegal location of type %s '%s', expected a UseRaLocationsOption instance", |
| 50 | 50 | get_debug_type($value), |
| 51 | - is_scalar($value) ? (string)$value : '', |
|
| 51 | + is_scalar($value) ? (string) $value : '', |
|
| 52 | 52 | ), |
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return (int)$value->isEnabled(); |
|
| 56 | + return (int) $value->isEnabled(); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?UseRaLocationsOption |
@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | "Encountered illegal sso registration bypass option %s '%s', expected a |
| 55 | 55 | SsoRegistrationBypassOption instance", |
| 56 | 56 | get_debug_type($value), |
| 57 | - is_scalar($value) ? (string)$value : '', |
|
| 57 | + is_scalar($value) ? (string) $value : '', |
|
| 58 | 58 | ), |
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - return (int)$value->isEnabled(); |
|
| 62 | + return (int) $value->isEnabled(); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SsoRegistrationBypassOption |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | try { |
| 72 | - $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool)$value); |
|
| 72 | + $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool) $value); |
|
| 73 | 73 | } catch (TypeError $e) { |
| 74 | 74 | throw ValueNotConvertible::new( |
| 75 | 75 | $value, |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return null; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - return (string)$value; |
|
| 48 | + return (string) $value; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Location |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | try { |
| 58 | 58 | $location = new Location($value); |
| 59 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 59 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 60 | 60 | throw ValueNotConvertible::new( |
| 61 | 61 | $value, |
| 62 | 62 | $this->getName(), |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | return null; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - return (string)$value; |
|
| 46 | + return (string) $value; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?CommonName |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | try { |
| 56 | 56 | $commonName = new CommonName($value); |
| 57 | - } catch (InvalidArgumentException|TypeError $e) { |
|
| 57 | + } catch (InvalidArgumentException | TypeError $e) { |
|
| 58 | 58 | throw ValueNotConvertible::new( |
| 59 | 59 | $value, |
| 60 | 60 | $this->getName(), |