Passed
Push — feature/symfony6-upgrade ( 54174f...166417 )
by Paul
06:29
created
StepupSelfService/SelfServiceBundle/Value/AvailableTokenCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     private function sortCollection(): void
61 61
     {
62 62
         // The collection is first sorted by LoA level and then in alphabetic order.
63
-        uasort($this->collection, function (AvailableTokenInterface $a, AvailableTokenInterface $b): int {
63
+        uasort($this->collection, function(AvailableTokenInterface $a, AvailableTokenInterface $b): int {
64 64
             if ($a->getLoaLevel() === $b->getLoaLevel()) {
65 65
                 return strcmp((string) $a->getType(), (string) $b->getType());
66 66
             }
Please login to merge, or discard this patch.
StepupSelfService/SelfServiceBundle/Service/SecondFactorTypeCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         return $this->maxNumberOfRegistrations;
58 58
     }
59 59
 
60
-    public function getRegistrationsLeft(): int|float
60
+    public function getRegistrationsLeft(): int | float
61 61
     {
62 62
         $total = $this->maxNumberOfRegistrations;
63 63
 
Please login to merge, or discard this patch.
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.
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(Request $request)
46 46
     {
47 47
         $identity = $this->getIdentity();
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
@@ -93,9 +93,9 @@
 block discarded – undo
93 93
         path: '/second-factor/{state}/{secondFactorId}/revoke',
94 94
         name: 'ss_second_factor_revoke',
95 95
         requirements: ['state' => '^(unverified|verified|vetted)$'],
96
-        methods: ['GET','POST']
96
+        methods: ['GET', 'POST']
97 97
     )]
98
-    public function revokeAction(Request $request, string $state, string $secondFactorId): array|Response
98
+    public function revokeAction(Request $request, string $state, string $secondFactorId): array | Response
99 99
     {
100 100
         $identity = $this->getIdentity();
101 101
 
Please login to merge, or discard this patch.
SelfServiceBundle/Controller/Registration/SmsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  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 42
     public function sendChallengeAction(Request $request)
43 43
     {
@@ -84,7 +84,7 @@  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 89
     public function provePossessionAction(Request $request)
90 90
     {
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.