Passed
Push — feature/updates-nov25 ( 25d33b...e99728 )
by Johan
05:23
created
CommandHandlingBundle/Identity/CommandHandler/IdentityCommandHandler.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         );
152 152
 
153 153
         $configurationInstitution = new ConfigurationInstitution(
154
-            (string)$identity->getInstitution(),
154
+            (string) $identity->getInstitution(),
155 155
         );
156 156
 
157 157
         $tokenCount = $this->institutionConfigurationOptionsService->getMaxNumberOfTokensFor($configurationInstitution);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $this->assertSecondFactorIsAllowedFor(new SecondFactorType('yubikey'), $identity->getInstitution());
174 174
 
175 175
         $configurationInstitution = new ConfigurationInstitution(
176
-            (string)$identity->getInstitution(),
176
+            (string) $identity->getInstitution(),
177 177
         );
178 178
         $tokenCount = $this->institutionConfigurationOptionsService->getMaxNumberOfTokensFor($configurationInstitution);
179 179
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $this->assertSecondFactorIsAllowedFor(new SecondFactorType('sms'), $identity->getInstitution());
197 197
 
198 198
         $configurationInstitution = new ConfigurationInstitution(
199
-            (string)$identity->getInstitution(),
199
+            (string) $identity->getInstitution(),
200 200
         );
201 201
 
202 202
         $tokenCount = $this->institutionConfigurationOptionsService->getMaxNumberOfTokensFor($configurationInstitution);
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $this->assertSecondFactorIsAllowedFor(new SecondFactorType($secondFactorType), $identity->getInstitution());
223 223
 
224 224
         $configurationInstitution = new ConfigurationInstitution(
225
-            (string)$identity->getInstitution(),
225
+            (string) $identity->getInstitution(),
226 226
         );
227 227
 
228 228
         $tokenCount = $this->institutionConfigurationOptionsService->getMaxNumberOfTokensFor($configurationInstitution);
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $this->assertSecondFactorIsAllowedFor(new SecondFactorType('u2f'), $identity->getInstitution());
248 248
 
249 249
         $configurationInstitution = new ConfigurationInstitution(
250
-            (string)$identity->getInstitution(),
250
+            (string) $identity->getInstitution(),
251 251
         );
252 252
 
253 253
         $tokenCount = $this->institutionConfigurationOptionsService->getMaxNumberOfTokensFor($configurationInstitution);
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 
410 410
         // Determine the maximum number of allowed tokens for the institution
411 411
         $configurationInstitution = new ConfigurationInstitution(
412
-            (string)$targetIdentity->getInstitution(),
412
+            (string) $targetIdentity->getInstitution(),
413 413
         );
414 414
         $tokenCount = $this->institutionConfigurationOptionsService->getMaxNumberOfTokensFor($configurationInstitution);
415 415
 
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
     {
487 487
         if (!$this->configurableSettings->isSupportedLocale($locale)) {
488 488
             throw new UnsupportedLocaleException(
489
-                sprintf('Given locale "%s" is not a supported locale', (string)$locale),
489
+                sprintf('Given locale "%s" is not a supported locale', (string) $locale),
490 490
             );
491 491
         }
492 492
     }
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
     public function assertSelfAssertedTokensEnabled(Institution $institution): void
512 512
     {
513 513
         $configurationInstitution = new ConfigurationInstitution(
514
-            (string)$institution,
514
+            (string) $institution,
515 515
         );
516 516
 
517 517
         $institutionConfiguration = $this->institutionConfigurationOptionsService
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
             throw new RuntimeException(
521 521
                 sprintf(
522 522
                     'Registration of self-asserted tokens is not allowed for this institution "%s".',
523
-                    (string)$institution,
523
+                    (string) $institution,
524 524
                 ),
525 525
             );
526 526
         }
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
     private function emailVerificationIsRequired(IdentityApi $identity): bool
533 533
     {
534 534
         $institution = new ConfigurationInstitution(
535
-            (string)$identity->getInstitution(),
535
+            (string) $identity->getInstitution(),
536 536
         );
537 537
 
538 538
         $configuration = $this->institutionConfigurationOptionsService
Please login to merge, or discard this patch.
CommandHandlingBundle/Identity/Service/RegistrationMailService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
CommandHandlingBundle/Identity/Service/VettingTypeHintService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
CommandHandlingBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
DependencyInjection/CompilerPass/AddPipelineStagesCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
CommandHandlingBundle/Twig/BackwardsCompatibleExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Configuration/Processor/InstitutionConfigurationProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
CommandHandlingBundle/Processor/EmailVerificationEmailProcessor.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Console/Command/BootstrapIdentityWithYubikeySecondFactorCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,14 +79,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.