@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2014 SURFnet bv |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $configuration = new Configuration(); |
46 | 46 | $config = $this->processConfiguration($configuration, $configs); |
47 | 47 | |
48 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
48 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
49 | 49 | $loader->load('services.yaml'); |
50 | 50 | $loader->load('security.yaml'); |
51 | 51 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2018 SURFnet B.V. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2018 SURFnet bv |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2018 SURFnet bv |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | private function sortCollection(): void |
60 | 60 | { |
61 | 61 | // The collection is first sorted by LoA level and then in alphabetic order. |
62 | - uasort($this->collection, function (AvailableTokenInterface $a, AvailableTokenInterface $b): int { |
|
62 | + uasort($this->collection, function(AvailableTokenInterface $a, AvailableTokenInterface $b): int { |
|
63 | 63 | if ($a->getLoaLevel() === $b->getLoaLevel()) { |
64 | 64 | return strcmp((string) $a->getType(), (string) $b->getType()); |
65 | 65 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2014 SURFnet bv |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | return $this->maxNumberOfRegistrations; |
60 | 60 | } |
61 | 61 | |
62 | - public function getRegistrationsLeft(): int|float |
|
62 | + public function getRegistrationsLeft(): int | float |
|
63 | 63 | { |
64 | 64 | $total = $this->maxNumberOfRegistrations; |
65 | 65 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2020 SURFnet B.V. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2017 SURFnet bv |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2014 SURFnet bv |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | path: '/second-factor/{state}/{secondFactorId}/revoke', |
103 | 103 | name: 'ss_second_factor_revoke', |
104 | 104 | requirements: ['state' => '^(unverified|verified|vetted)$'], |
105 | - methods: ['GET','POST'] |
|
105 | + methods: ['GET', 'POST'] |
|
106 | 106 | )] |
107 | - public function revoke(Request $request, string $state, string $secondFactorId): array|Response |
|
107 | + public function revoke(Request $request, string $state, string $secondFactorId): array | Response |
|
108 | 108 | { |
109 | 109 | $identity = $this->getIdentity(); |
110 | 110 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2014 SURFnet bv |
@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | #[Route( |
49 | 49 | path: '/registration/sms/send-challenge', |
50 | 50 | name: 'ss_registration_sms_send_challenge', |
51 | - methods: ['GET','POST'], |
|
51 | + methods: ['GET', 'POST'], |
|
52 | 52 | )] |
53 | - public function sendChallenge(Request $request): array|RedirectResponse |
|
53 | + public function sendChallenge(Request $request): array | RedirectResponse |
|
54 | 54 | { |
55 | 55 | $this->assertSecondFactorEnabled('sms'); |
56 | 56 | |
@@ -92,9 +92,9 @@ discard block |
||
92 | 92 | #[Route( |
93 | 93 | path: '/registration/sms/prove-possession', |
94 | 94 | name: 'ss_registration_sms_prove_possession', |
95 | - methods: ['GET','POST'], |
|
95 | + methods: ['GET', 'POST'], |
|
96 | 96 | )] |
97 | - public function provePossession(Request $request): RedirectResponse|array |
|
97 | + public function provePossession(Request $request): RedirectResponse | array |
|
98 | 98 | { |
99 | 99 | $this->assertSecondFactorEnabled('sms'); |
100 | 100 |