Passed
Push — feature/symfony6-upgrade ( a7dd60...a6ccb9 )
by Paul
07:20
created
StepupSelfService/SelfServiceBundle/Security/Factory/SamlFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         return -10;
64 64
     }
65 65
 
66
-    public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string|array
66
+    public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string | array
67 67
     {
68 68
         return $config;
69 69
     }
Please login to merge, or discard this patch.
SelfServiceBundle/Security/Authentication/Session/SessionStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
     public function hasRequestId(): bool
109 109
     {
110
-        return $this->session->has(self::SAML_SESSION_KEY. 'request_id');
110
+        return $this->session->has(self::SAML_SESSION_KEY . 'request_id');
111 111
     }
112 112
 
113 113
     public function clearRequestId(): void
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 
18 18
 use Surfnet\StepupSelfService\Kernel;
19 19
 
20
-require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
20
+require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
21 21
 
22
-return function (array $context) {
22
+return function(array $context) {
23 23
     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
24 24
 };
Please login to merge, or discard this patch.
SelfServiceBundle/Controller/Registration/GssfController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     #[Route(
55 55
         path: '/registration/gssf/{provider}/status',
56 56
         name: 'ss_registration_gssf_status_report',
57
-        defaults: ['authenticationFailed' => false, 'proofOfPossessionFailed'=> false ],
57
+        defaults: ['authenticationFailed' => false, 'proofOfPossessionFailed'=> false],
58 58
         methods: ['GET'],
59 59
     )]
60 60
 
Please login to merge, or discard this patch.
SelfServiceBundle/Controller/SelfAssertedTokensController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     #[Route(
145 145
         path: '/second-factor/{secondFactorId}/self-asserted-token-registration/{recoveryTokenId}',
146 146
         name: 'ss_second_factor_self_asserted_tokens_recovery_token',
147
-        methods: ['GET','POST']
147
+        methods: ['GET', 'POST']
148 148
     )]
149 149
     public function selfAssertedTokenRegistrationRecoveryToken(
150 150
         Request $request,
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     #[Route(
269 269
         path: '/second-factor/{secondFactorId}/self-asserted-token-registration/{recoveryTokenId}/authenticate',
270 270
         name: 'ss_second_factor_self_asserted_tokens_recovery_token_sms',
271
-        methods: ['GET','POST']
271
+        methods: ['GET', 'POST']
272 272
     )]
273 273
     public function selfAssertedTokenRecoveryTokenSmsAuthentication(
274 274
         Request $request,
@@ -341,9 +341,9 @@  discard block
 block discarded – undo
341 341
     #[Route(
342 342
         path: '/second-factor/{secondFactorId}/safe-store',
343 343
         name: 'ss_registration_recovery_token_safe_store',
344
-        methods: ['GET','POST']
344
+        methods: ['GET', 'POST']
345 345
     )]
346
-    public function registerCreateRecoveryTokenSafeStore(Request $request, string $secondFactorId): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
346
+    public function registerCreateRecoveryTokenSafeStore(Request $request, string $secondFactorId): \Symfony\Component\HttpFoundation\RedirectResponse | \Symfony\Component\HttpFoundation\Response
347 347
     {
348 348
         $identity = $this->getIdentity();
349 349
         $this->assertSecondFactorInPossession($secondFactorId, $identity);
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     #[Route(
387 387
         path: '/second-factor/{secondFactorId}/sms',
388 388
         name: 'ss_registration_recovery_token_sms',
389
-        methods: ['GET','POST'],
389
+        methods: ['GET', 'POST'],
390 390
     )]
391 391
     public function registerRecoveryTokenSms(Request $request, string $secondFactorId): \Symfony\Component\HttpFoundation\Response
392 392
     {
Please login to merge, or discard this patch.
StepupSelfService/SelfServiceBundle/Controller/SecondFactorController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,9 +96,9 @@
 block discarded – undo
96 96
         path: '/second-factor/{state}/{secondFactorId}/revoke',
97 97
         name: 'ss_second_factor_revoke',
98 98
         requirements: ['state' => '^(unverified|verified|vetted)$'],
99
-        methods: ['GET','POST']
99
+        methods: ['GET', 'POST']
100 100
     )]
101
-    public function revoke(Request $request, string $state, string $secondFactorId): array|Response
101
+    public function revoke(Request $request, string $state, string $secondFactorId): array | Response
102 102
     {
103 103
         $identity = $this->getIdentity();
104 104
 
Please login to merge, or discard this patch.
SelfServiceBundle/Controller/Registration/YubikeyController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
     #[Route(
36 36
         path: '/registration/yubikey/prove-possession',
37 37
         name: 'ss_registration_yubikey_prove_possession',
38
-        methods: ['GET','POST'],
38
+        methods: ['GET', 'POST'],
39 39
     )]
40
-    public function provePossession(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|array
40
+    public function provePossession(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse | array
41 41
     {
42 42
         $this->assertSecondFactorEnabled('yubikey');
43 43
 
Please login to merge, or discard this patch.
SelfServiceBundle/Controller/Registration/SmsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
     #[Route(
38 38
         path: '/registration/sms/send-challenge',
39 39
         name: 'ss_registration_sms_send_challenge',
40
-        methods: ['GET','POST'],
40
+        methods: ['GET', 'POST'],
41 41
     )]
42
-    public function sendChallenge(Request $request): array|\Symfony\Component\HttpFoundation\RedirectResponse
42
+    public function sendChallenge(Request $request): array | \Symfony\Component\HttpFoundation\RedirectResponse
43 43
     {
44 44
         $this->assertSecondFactorEnabled('sms');
45 45
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
     #[Route(
85 85
         path: '/registration/sms/prove-possession',
86 86
         name: 'ss_registration_sms_prove_possession',
87
-        methods: ['GET','POST'],
87
+        methods: ['GET', 'POST'],
88 88
     )]
89
-    public function provePossession(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|array
89
+    public function provePossession(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse | array
90 90
     {
91 91
         $this->assertSecondFactorEnabled('sms');
92 92
 
Please login to merge, or discard this patch.
StepupSelfService/SelfServiceBundle/Controller/EntryPointController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 //methods:  [GET]
42 42
 //defaults: { _controller: SurfnetStepupSelfServiceSelfServiceBundle:EntryPoint:decideSecondFactorFlow }
43 43
 
44
-#[Route(path: '/', name: 'ss_entry_point', methods:['GET'] )]
44
+#[Route(path: '/', name: 'ss_entry_point', methods:['GET'])]
45 45
 public function decideSecondFactorFlow() : \Symfony\Component\HttpFoundation\RedirectResponse
46 46
 {
47 47
     $identity = $this->getIdentity();
Please login to merge, or discard this patch.