Passed
Push — feature/add-azure-mfa-registra... ( e9464b...2712a3 )
by
unknown
02:12
created
src/Surfnet/StepupGateway/GatewayBundle/Sso2fa/Http/CookieHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         return new Cookie(
95 95
             $this->configuration->getName(),
96 96
             $value,
97
-            $this->configuration->isPersistent() ? $this->getTimestamp($this->configuration->getLifetime()): 0,
97
+            $this->configuration->isPersistent() ? $this->getTimestamp($this->configuration->getLifetime()) : 0,
98 98
             '/',
99 99
             null,
100 100
             true,
Please login to merge, or discard this patch.
SecondFactorOnlyBundle/Controller/SecondFactorOnlyController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
         } else {
150 150
             // Render the regular SAML response, we do not return it yet, the SSO on 2FA handler will use it to store
151 151
             // the SSO on 2FA cookie.
152
-            $httpResponse =  $responseRendering->renderResponse($responseContext, $response, $request);
152
+            $httpResponse = $responseRendering->renderResponse($responseContext, $response, $request);
153 153
         }
154 154
 
155 155
         if ($response->isSuccess()) {
Please login to merge, or discard this patch.
src/Surfnet/StepupGateway/GatewayBundle/Service/ProxyResponseService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
     private function addAuthenticationStatementTo(Assertion $newAssertion, Assertion $assertion): void
161 161
     {
162 162
         $newAssertion->setAuthnInstant($assertion->getAuthnInstant());
163
-        $newAssertion->setAuthnContextClassRef((string)$this->intrinsicLoa);
163
+        $newAssertion->setAuthnContextClassRef((string) $this->intrinsicLoa);
164 164
 
165 165
         $authority = $assertion->getAuthenticatingAuthority();
166 166
         $newAssertion->setAuthenticatingAuthority(
Please login to merge, or discard this patch.
tests/features/bootstrap/FeatureContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     public function anInstitutionThatAllows(string $institution, string $option): void
199 199
     {
200
-        switch(true) {
200
+        switch (true) {
201 201
             case $option === 'sso_on_2fa':
202 202
                 $optionColumnName = 'sso_on2fa_enabled';
203 203
                 break;
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     private function getCookieNames(array $responseCookieHeaders): array
366 366
     {
367 367
         $response = [];
368
-        foreach($responseCookieHeaders as $cookie) {
368
+        foreach ($responseCookieHeaders as $cookie) {
369 369
             $parts = explode('=', $cookie);
370 370
             $response[] = array_shift($parts);
371 371
         }
Please login to merge, or discard this patch.
DependencyInjection/SurfnetStepupGatewaySamlStepupProviderExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $configuration = new Configuration();
43 43
         $config = $this->processConfiguration($configuration, $configs);
44 44
 
45
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
45
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
46 46
         $loader->load('services.yml');
47 47
 
48 48
         $connectedServiceProviders = $container->getDefinition('gssp.allowed_sps');
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $hostedDefinition = $this->buildHostedEntityDefinition($provider, $configuration, $routes);
138 138
         $container->setDefinition('gssp.provider.' . $provider . '.hosted_entities', $hostedDefinition);
139 139
 
140
-        $hostedSpDefinition  = (new Definition())
140
+        $hostedSpDefinition = (new Definition())
141 141
             ->setClass(\Surfnet\SamlBundle\Entity\ServiceProvider::class)
142 142
             ->setFactory([new Reference('gssp.provider.' . $provider . '.hosted_entities'), 'getServiceProvider'])
143 143
             ->setPublic(false);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     private function createRemoteDefinition($provider, array $configuration, ContainerBuilder $container): void
192 192
     {
193
-        $definition    = new Definition(\Surfnet\SamlBundle\Entity\IdentityProvider::class, [
193
+        $definition = new Definition(\Surfnet\SamlBundle\Entity\IdentityProvider::class, [
194 194
             [
195 195
                 'entityId'        => $configuration['entity_id'],
196 196
                 'ssoUrl'          => $configuration['sso_url'],
Please login to merge, or discard this patch.
ci/qa/phpstan-baseline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 $ignoreErrors = [];
4 4
 $ignoreErrors[] = [
Please login to merge, or discard this patch.
tests/src/Controller/IdentityProviderController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     {
105 105
         $newAssertion = new Assertion();
106 106
         $newAssertion->setNotBefore(time());
107
-        $newAssertion->setNotOnOrAfter(time() + (60 * 5));//
107
+        $newAssertion->setNotOnOrAfter(time() + (60 * 5)); //
108 108
         $newAssertion->setAttributes(['urn:mace:dir:attribute-def:eduPersonTargetedID' => [NameID::fromArray($nameId)]]);
109 109
         $newAssertion->setIssuer('https://idp.dev.openconext.local/');
110 110
         $newAssertion->setIssueInstant(time());
Please login to merge, or discard this patch.
config/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Symfony\Component\Yaml\Yaml;
4 4
 
5
-require dirname(__DIR__).'/vendor/autoload.php';
6
-$parametersPath = dirname(__DIR__).'/config/openconext/parameters.yaml';
5
+require dirname(__DIR__) . '/vendor/autoload.php';
6
+$parametersPath = dirname(__DIR__) . '/config/openconext/parameters.yaml';
7 7
 $parameters = Yaml::parseFile($parametersPath);
8 8
 $parameters = $parameters['parameters'];
9 9
 $requiredParameters = ['app_env', 'app_debug', 'app_secret'];
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 use App\Kernel;
3 3
 
4
-require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
5
-require_once dirname(__DIR__).'/config/bootstrap.php';
4
+require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
5
+require_once dirname(__DIR__) . '/config/bootstrap.php';
6 6
 
7
-return function (array $context) {
7
+return function(array $context) {
8 8
     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
9 9
 };
Please login to merge, or discard this patch.