@@ -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 @@ |
||
| 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 |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | ]); |
| 42 | 42 | $builder->add('verifySecret', SubmitType::class, [ |
| 43 | 43 | 'label' => 'ss.form.ss_authenticate_safe_store_type.button.continue', |
| 44 | - 'attr' => [ 'class' => 'btn btn-primary pull-right' ], |
|
| 44 | + 'attr' => ['class' => 'btn btn-primary pull-right'], |
|
| 45 | 45 | ]); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -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 |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | ]) |
| 41 | 41 | ->add('confirm', SubmitType::class, [ |
| 42 | 42 | 'label' => 'ss.form.recovery_token.button.confirm', |
| 43 | - 'attr' => [ 'class' => 'btn btn-primary pull-right' ], |
|
| 43 | + 'attr' => ['class' => 'btn btn-primary pull-right'], |
|
| 44 | 44 | ]); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -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,9 +45,9 @@ discard block |
||
| 45 | 45 | path: '/second-factor/{state}/{secondFactorId}/revoke', |
| 46 | 46 | name: 'ss_second_factor_revoke', |
| 47 | 47 | requirements: ['state' => '^(unverified|verified|vetted)$'], |
| 48 | - methods: ['GET','POST'] |
|
| 48 | + methods: ['GET', 'POST'] |
|
| 49 | 49 | )] |
| 50 | - public function __invoke(Request $request, string $state, string $secondFactorId): array|Response |
|
| 50 | + public function __invoke(Request $request, string $state, string $secondFactorId): array | Response |
|
| 51 | 51 | { |
| 52 | 52 | $identity = $this->getUser()->getIdentity(); |
| 53 | 53 | |
@@ -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 2015 SURFnet bv |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | name: 'ss_registration_gssf_consume_assertion', |
| 56 | 56 | methods: ['POST'], |
| 57 | 57 | )] |
| 58 | - public function consumeAssertion(Request $httpRequest, string $provider): array|Response |
|
| 58 | + public function consumeAssertion(Request $httpRequest, string $provider): array | Response |
|
| 59 | 59 | { |
| 60 | 60 | $this->checkerService->assertSecondFactorEnabled($provider); |
| 61 | 61 | |
@@ -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 2016 SURFnet bv |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | public function hasRequestId(): bool |
| 110 | 110 | { |
| 111 | - return $this->requestStack->getSession()->has(self::SAML_SESSION_KEY. 'request_id'); |
|
| 111 | + return $this->requestStack->getSession()->has(self::SAML_SESSION_KEY . 'request_id'); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | public function clearRequestId(): void |
@@ -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 2015 SURFnet bv |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $configuration = new Configuration(); |
| 55 | 55 | $config = $this->processConfiguration($configuration, $configs); |
| 56 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 56 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 57 | 57 | $loader->load('services.yml'); |
| 58 | 58 | |
| 59 | 59 | foreach ($config['providers'] as $provider => $providerConfiguration) { |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $hostedDefinition = $this->buildHostedEntityDefinition($provider, $configuration, $routes); |
| 163 | 163 | $container->setDefinition('gssp.provider.' . $provider . '.hosted_entities', $hostedDefinition); |
| 164 | 164 | |
| 165 | - $hostedSpDefinition = (new Definition()) |
|
| 165 | + $hostedSpDefinition = (new Definition()) |
|
| 166 | 166 | ->setClass(ServiceProvider::class) |
| 167 | 167 | ->setFactory([ |
| 168 | 168 | new Reference('gssp.provider.' . $provider . '.hosted_entities'), |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | private function createRemoteDefinition(string $provider, array $configuration, ContainerBuilder $container): void |
| 202 | 202 | { |
| 203 | - $definition = new Definition(IdentityProvider::class, [ |
|
| 203 | + $definition = new Definition(IdentityProvider::class, [ |
|
| 204 | 204 | [ |
| 205 | 205 | 'entityId' => $configuration['entity_id'], |
| 206 | 206 | 'ssoUrl' => $configuration['sso_url'], |
@@ -261,14 +261,14 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | private function validateDescriptions($descriptions, $appUrl, string $provider, string $type): void |
| 263 | 263 | { |
| 264 | - $regex ="/%%{$type}_link_start%%[a-zA-Z0-9 ]+%%{$type}_link_end%%/"; |
|
| 264 | + $regex = "/%%{$type}_link_start%%[a-zA-Z0-9 ]+%%{$type}_link_end%%/"; |
|
| 265 | 265 | foreach ($descriptions as $lang => $description) { |
| 266 | 266 | if ($appUrl !== false && preg_match($regex, (string) $description) === 0) { |
| 267 | 267 | throw new InvalidConfigurationException( |
| 268 | 268 | sprintf( |
| 269 | 269 | 'You have configured a GSSP provider with app URL\'s but the description is not ' . |
| 270 | 270 | 'configured correctly yet. Missing "%%%1$s_link_start%%" or "%%%1$s_link_end%%" in ' . |
| 271 | - 'GSSP description for language "%2$s" in "providers.%3$s.view_config.description" of '. |
|
| 271 | + 'GSSP description for language "%2$s" in "providers.%3$s.view_config.description" of ' . |
|
| 272 | 272 | 'samlstepupproviders.yml', |
| 273 | 273 | $type, |
| 274 | 274 | $lang, |