Passed
Push — feature/build-and-publish-test... ( 8e4ede...7b7b0e )
by Michiel
16:32 queued 09:17
created
SelfServiceBundle/Security/Authentication/Session/SessionStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
SamlStepupProviderBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
DependencyInjection/SurfnetStepupSelfServiceSamlStepupProviderExtension.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
Surfnet/StepupSelfService/SamlStepupProviderBundle/Saml/StateHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
SamlStepupProviderBundle/Exception/MetadataFactoryNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
SamlStepupProviderBundle/Provider/MetadataFactoryCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Surfnet/StepupSelfService/SamlStepupProviderBundle/Provider/Metadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
StepupSelfService/SamlStepupProviderBundle/Provider/ProviderRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Surfnet/StepupSelfService/SamlStepupProviderBundle/Provider/Provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.