Passed
Push — develop ( 3b305d...c85f88 )
by Pieter van der
05:04
created
Surfnet/StepupSelfService/SelfServiceBundle/Form/Type/VerifyEmailType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         ]);
39 39
         $builder->add('verifyEmail', SubmitType::class, [
40 40
             'label' => 'ss.form.ss_verify_email.button.verify_email',
41
-            'attr' => [ 'class' => 'btn btn-primary' ],
41
+            'attr' => ['class' => 'btn btn-primary'],
42 42
         ]);
43 43
     }
44 44
 
Please login to merge, or discard this patch.
StepupSelfService/SelfServiceBundle/Form/Type/RevokeSecondFactorType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     {
30 30
         $builder->add('revoke', SubmitType::class, [
31 31
             'label' => 'ss.form.ss_revoke_second_factor.revoke',
32
-            'attr' => [ 'class' => 'btn btn-danger pull-right' ],
32
+            'attr' => ['class' => 'btn btn-danger pull-right'],
33 33
         ]);
34 34
         $builder->add('cancel', AnchorType::class, [
35 35
             'label' => 'ss.form.ss_revoke_second_factor.cancel',
36
-            'attr' => [ 'class' => 'btn pull-right' ],
36
+            'attr' => ['class' => 'btn pull-right'],
37 37
             'route' => 'ss_second_factor_list',
38 38
         ]);
39 39
     }
Please login to merge, or discard this patch.
StepupSelfService/SelfServiceBundle/Controller/RecoveryTokenController.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
 
48 48
 /**
49 49
  * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
50
-
51 50
  */
52 51
 class RecoveryTokenController extends Controller
53 52
 {
Please login to merge, or discard this patch.
SelfServiceBundle/Security/Authentication/Session/SessionStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 
114 114
     public function hasRequestId()
115 115
     {
116
-        return $this->session->has(self::SAML_SESSION_KEY. 'request_id');
116
+        return $this->session->has(self::SAML_SESSION_KEY . 'request_id');
117 117
     }
118 118
 
119 119
     public function clearRequestId()
Please login to merge, or discard this patch.
SamlStepupProviderBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                     ->scalarNode('consume_assertion')
48 48
                         ->isRequired()
49 49
                         ->validate()
50
-                            ->ifTrue(function ($v) {
50
+                            ->ifTrue(function($v) {
51 51
                                 return !is_string($v) || strlen($v) === 0;
52 52
                             })
53 53
                             ->thenInvalid('Consume assertion route must be a non-empty string')
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     ->scalarNode('metadata')
57 57
                         ->isRequired()
58 58
                         ->validate()
59
-                            ->ifTrue(function ($v) {
59
+                            ->ifTrue(function($v) {
60 60
                                 return !is_string($v) || strlen($v) === 0;
61 61
                             })
62 62
                             ->thenInvalid('Metadata route must be a non-empty string')
Please login to merge, or discard this patch.
DependencyInjection/SurfnetStepupSelfServiceSamlStepupProviderExtension.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $configuration = new Configuration();
42 42
         $config = $this->processConfiguration($configuration, $configs);
43
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
43
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
44 44
         $loader->load('services.yml');
45 45
 
46 46
         foreach ($config['providers'] as $provider => $providerConfiguration) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $hostedDefinition = $this->buildHostedEntityDefinition($provider, $configuration, $routes);
146 146
         $container->setDefinition('gssp.provider.' . $provider . '.hosted_entities', $hostedDefinition);
147 147
 
148
-        $hostedSpDefinition  = (new Definition())
148
+        $hostedSpDefinition = (new Definition())
149 149
             ->setClass('Surfnet\SamlBundle\Entity\ServiceProvider')
150 150
             ->setFactory([
151 151
                 new Reference('gssp.provider.' . $provider . '.hosted_entities'),
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     private function createRemoteDefinition($provider, array $configuration, ContainerBuilder $container)
196 196
     {
197
-        $definition    = new Definition('Surfnet\SamlBundle\Entity\IdentityProvider', [
197
+        $definition = new Definition('Surfnet\SamlBundle\Entity\IdentityProvider', [
198 198
             [
199 199
                 'entityId'        => $configuration['entity_id'],
200 200
                 'ssoUrl'          => $configuration['sso_url'],
@@ -255,14 +255,14 @@  discard block
 block discarded – undo
255 255
 
256 256
     private function validateDescriptions($descriptions, $appUrl, $provider, $type)
257 257
     {
258
-        $regex ="/%%{$type}_link_start%%[a-zA-Z0-9 ]+%%{$type}_link_end%%/";
258
+        $regex = "/%%{$type}_link_start%%[a-zA-Z0-9 ]+%%{$type}_link_end%%/";
259 259
         foreach ($descriptions as $lang => $description) {
260 260
             if ($appUrl !== false && preg_match($regex, $description) === 0) {
261 261
                 throw new InvalidConfigurationException(
262 262
                     sprintf(
263 263
                         'You have configured a GSSP provider with app URL\'s but the description is not ' .
264 264
                         'configured correctly yet. Missing "%%%1$s_link_start%%" or "%%%1$s_link_end%%" in ' .
265
-                        'GSSP description for language "%2$s" in "providers.%3$s.view_config.description" of '.
265
+                        'GSSP description for language "%2$s" in "providers.%3$s.view_config.description" of ' .
266 266
                         'samlstepupproviders.yml',
267 267
                         $type,
268 268
                         $lang,
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function registerBundles(): iterable
34 34
     {
35
-        $contents = require $this->getProjectDir().'/config/bundles.php';
35
+        $contents = require $this->getProjectDir() . '/config/bundles.php';
36 36
         foreach ($contents as $class => $envs) {
37 37
             if ($envs[$this->environment] ?? $envs['all'] ?? false) {
38 38
                 yield new $class();
@@ -47,23 +47,23 @@  discard block
 block discarded – undo
47 47
 
48 48
     protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
49 49
     {
50
-        $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
50
+        $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php'));
51 51
         $container->setParameter('container.dumper.inline_class_loader', \PHP_VERSION_ID < 70400 || $this->debug);
52 52
         $container->setParameter('container.dumper.inline_factories', true);
53
-        $confDir = $this->getProjectDir().'/config';
53
+        $confDir = $this->getProjectDir() . '/config';
54 54
 
55
-        $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');
56
-        $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');
57
-        $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');
58
-        $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
55
+        $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob');
56
+        $loader->load($confDir . '/{packages}/' . $this->environment . '/*' . self::CONFIG_EXTS, 'glob');
57
+        $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob');
58
+        $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob');
59 59
     }
60 60
 
61 61
     protected function configureRoutes(RouteCollectionBuilder $routes): void
62 62
     {
63
-        $confDir = $this->getProjectDir().'/config';
63
+        $confDir = $this->getProjectDir() . '/config';
64 64
 
65
-        $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');
66
-        $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
67
-        $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
65
+        $routes->import($confDir . '/{routes}/' . $this->environment . '/*' . self::CONFIG_EXTS, '/', 'glob');
66
+        $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob');
67
+        $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob');
68 68
     }
69 69
 }
Please login to merge, or discard this patch.