@@ -67,7 +67,7 @@ |
||
67 | 67 | $this |
68 | 68 | ->getEntityManager() |
69 | 69 | ->createQuery( |
70 | - 'DELETE FROM '.SamlEntity::class.' se WHERE se.type = :type', |
|
70 | + 'DELETE FROM ' . SamlEntity::class . ' se WHERE se.type = :type', |
|
71 | 71 | ) |
72 | 72 | ->execute(['type' => $type]); |
73 | 73 |
@@ -67,6 +67,6 @@ |
||
67 | 67 | #[ORM\Column(type: 'boolean', options: ['default' => '1'])] |
68 | 68 | private bool $identityVetted, |
69 | 69 | ) { |
70 | - $this->id = (string)Uuid::uuid4(); |
|
70 | + $this->id = (string) Uuid::uuid4(); |
|
71 | 71 | } |
72 | 72 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | #[ORM\Column(type: 'text')] |
50 | 50 | public string $configuration, |
51 | 51 | ) { |
52 | - $this->id = (string)Uuid::uuid4(); |
|
52 | + $this->id = (string) Uuid::uuid4(); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public static function createServiceProvider(string $entityId, array $configuration): self |
@@ -166,7 +166,7 @@ |
||
166 | 166 | string $message, |
167 | 167 | string $propertyPath, |
168 | 168 | ): void { |
169 | - $assertLowerCase = fn($sho): bool => $sho === strtolower((string)$sho); |
|
169 | + $assertLowerCase = fn($sho): bool => $sho === strtolower((string) $sho); |
|
170 | 170 | |
171 | 171 | // The array keys match the institution name / SHO. |
172 | 172 | $lowerCaseTestResults = array_map($assertLowerCase, array_keys($spLoaConfiguration)); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | /** |
5 | 5 | * Copyright 2014 SURFnet bv |
6 | 6 | * |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | $this->whitelistedInstitutions = array_map( |
227 | - fn(WhitelistEntry $whitelistEntry): string => (string)$whitelistEntry->institution, |
|
227 | + fn(WhitelistEntry $whitelistEntry): string => (string) $whitelistEntry->institution, |
|
228 | 228 | $this->whitelistService->getAllEntries()->toArray(), |
229 | 229 | ); |
230 | 230 | |
@@ -239,13 +239,13 @@ discard block |
||
239 | 239 | public function determineNonExistentInstitutions(array $institutions, array $configuredInstitutions): array |
240 | 240 | { |
241 | 241 | $normalizedConfiguredInstitutions = array_map( |
242 | - fn($institution): string => strtolower((string)$institution), |
|
242 | + fn($institution): string => strtolower((string) $institution), |
|
243 | 243 | $configuredInstitutions, |
244 | 244 | ); |
245 | 245 | |
246 | 246 | return array_filter( |
247 | 247 | $institutions, |
248 | - function ($institution) use ($normalizedConfiguredInstitutions): bool { |
|
248 | + function($institution) use ($normalizedConfiguredInstitutions): bool { |
|
249 | 249 | $normalizedInstitution = strtolower($institution); |
250 | 250 | |
251 | 251 | return !in_array($normalizedInstitution, $normalizedConfiguredInstitutions); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | // method is not in the interface yet, but the old method is deprecated. |
54 | 54 | $violation = $this->context->buildViolation($exception->getMessage()); |
55 | 55 | $violation->atPath($exception->getPropertyPath()); |
56 | - } catch (CoreInvalidArgumentException|TypeError $exception) { |
|
56 | + } catch (CoreInvalidArgumentException | TypeError $exception) { |
|
57 | 57 | $violation = $this->context->buildViolation($exception->getMessage()); |
58 | 58 | } |
59 | 59 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public static function create(string $name, string $locale, string $htmlContent): self |
54 | 54 | { |
55 | 55 | $self = new self(); |
56 | - $self->id = (string)Uuid::uuid4(); |
|
56 | + $self->id = (string) Uuid::uuid4(); |
|
57 | 57 | |
58 | 58 | $self->name = $name; |
59 | 59 | $self->locale = $locale; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | $command = new UpdateConfigurationCommand(); |
52 | 52 | $command->configuration = $request->getContent(); |
53 | - $command->UUID = (string)Uuid::uuid4(); |
|
53 | + $command->UUID = (string) Uuid::uuid4(); |
|
54 | 54 | |
55 | 55 | return $this->handleCommand($request, $command); |
56 | 56 | } |