@@ -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 @@ |
||
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 |
@@ -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, |
@@ -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 2015 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 2014 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 2023 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 2015 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 2015 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 2015 SURFnet bv |