@@ -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 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | { |
53 | 53 | $configuration = new Configuration(); |
54 | 54 | $config = $this->processConfiguration($configuration, $configs); |
55 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
55 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
56 | 56 | $loader->load('services.yml'); |
57 | 57 | |
58 | 58 | foreach ($config['providers'] as $provider => $providerConfiguration) { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $hostedDefinition = $this->buildHostedEntityDefinition($provider, $configuration, $routes); |
159 | 159 | $container->setDefinition('gssp.provider.' . $provider . '.hosted_entities', $hostedDefinition); |
160 | 160 | |
161 | - $hostedSpDefinition = (new Definition()) |
|
161 | + $hostedSpDefinition = (new Definition()) |
|
162 | 162 | ->setClass(\Surfnet\SamlBundle\Entity\ServiceProvider::class) |
163 | 163 | ->setFactory([ |
164 | 164 | new Reference('gssp.provider.' . $provider . '.hosted_entities'), |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | |
197 | 197 | private function createRemoteDefinition(string $provider, array $configuration, ContainerBuilder $container): void |
198 | 198 | { |
199 | - $definition = new Definition(IdentityProvider::class, [ |
|
199 | + $definition = new Definition(IdentityProvider::class, [ |
|
200 | 200 | [ |
201 | 201 | 'entityId' => $configuration['entity_id'], |
202 | 202 | 'ssoUrl' => $configuration['sso_url'], |
@@ -257,14 +257,14 @@ discard block |
||
257 | 257 | |
258 | 258 | private function validateDescriptions($descriptions, $appUrl, string $provider, string $type): void |
259 | 259 | { |
260 | - $regex ="/%%{$type}_link_start%%[a-zA-Z0-9 ]+%%{$type}_link_end%%/"; |
|
260 | + $regex = "/%%{$type}_link_start%%[a-zA-Z0-9 ]+%%{$type}_link_end%%/"; |
|
261 | 261 | foreach ($descriptions as $lang => $description) { |
262 | 262 | if ($appUrl !== false && preg_match($regex, (string) $description) === 0) { |
263 | 263 | throw new InvalidConfigurationException( |
264 | 264 | sprintf( |
265 | 265 | 'You have configured a GSSP provider with app URL\'s but the description is not ' . |
266 | 266 | 'configured correctly yet. Missing "%%%1$s_link_start%%" or "%%%1$s_link_end%%" in ' . |
267 | - 'GSSP description for language "%2$s" in "providers.%3$s.view_config.description" of '. |
|
267 | + 'GSSP description for language "%2$s" in "providers.%3$s.view_config.description" of ' . |
|
268 | 268 | 'samlstepupproviders.yml', |
269 | 269 | $type, |
270 | 270 | $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 2021 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 2022 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 2016 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 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 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 2021 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 2014 SURFnet bv |