Passed
Push — feature/symfony6-upgrade ( bb274e...7f0a22 )
by Paul
13:24 queued 06:45
created
config/bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Symfony\Component\Dotenv\Dotenv;
4 4
 
5
-require dirname(__DIR__).'/vendor/autoload.php';
5
+require dirname(__DIR__) . '/vendor/autoload.php';
6 6
 
7 7
 if (!class_exists(Dotenv::class)) {
8 8
     throw new LogicException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
 
11 11
 // Load cached env vars if the .env.local.php file exists
12 12
 // Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
13
-if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {
13
+if (is_array($env = @include dirname(__DIR__) . '/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {
14 14
     (new Dotenv(false))->populate($env);
15 15
 } else {
16 16
     // load all the .env files
17
-    (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
17
+    (new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env');
18 18
 }
19 19
 
20 20
 $_SERVER += $_ENV;
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use Symfony\Component\ErrorHandler\Debug;
5 5
 use Symfony\Component\HttpFoundation\Request;
6 6
 
7
-require dirname(__DIR__).'/config/bootstrap.php';
7
+require dirname(__DIR__) . '/config/bootstrap.php';
8 8
 
9 9
 if ($_SERVER['APP_DEBUG']) {
10 10
     umask(0000);
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.stepup.example.com/');
110 110
         $newAssertion->setIssueInstant(time());
Please login to merge, or discard this patch.
ci/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use App\Kernel;
4 4
 use Symfony\Component\HttpFoundation\Request;
5 5
 
6
-require dirname(__DIR__).'/config/bootstrap.php';
6
+require dirname(__DIR__) . '/config/bootstrap.php';
7 7
 
8 8
 $kernel = new Kernel('test', false);
9 9
 $request = Request::createFromGlobals();
Please login to merge, or discard this patch.
src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Saml/ResponseFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $this->hostedIdentityProvider    = $hostedIdentityProvider;
67 67
         $this->proxyStateHandler         = $proxyStateHandler;
68 68
         $this->assertionSigningService   = $assertionSigningService;
69
-        $this->currentTime = is_null($now) ? new DateTime('now', new DateTimeZone('UTC')): $now;
69
+        $this->currentTime = is_null($now) ? new DateTime('now', new DateTimeZone('UTC')) : $now;
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/Surfnet/StepupGateway/ApiBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                     ->scalarNode('http_basic_realm')
34 34
                         ->defaultValue('Secure Gateway API')
35 35
                         ->validate()
36
-                            ->ifTrue(function ($realm) {
36
+                            ->ifTrue(function($realm) {
37 37
                                 return !is_string($realm) || empty($realm);
38 38
                             })
39 39
                             ->thenInvalid("Invalid HTTP Basic realm '%s'. Must be string and non-empty.")
Please login to merge, or discard this patch.
src/Surfnet/StepupGateway/ApiBundle/Controller/SmsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             return new JsonResponse(['status' => 'OK']);
48 48
         }
49 49
 
50
-        $errors = array_map(function ($error) {
50
+        $errors = array_map(function($error) {
51 51
             return sprintf('%s (#%d)', $error['description'], $error['code']);
52 52
         }, $result->getRawErrors());
53 53
 
Please login to merge, or discard this patch.
SamlStepupProviderBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     ->scalarNode('sso')
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('SSO route must be a non-empty string')
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                     ->scalarNode('consume_assertion')
66 66
                         ->isRequired()
67 67
                         ->validate()
68
-                            ->ifTrue(function ($v) {
68
+                            ->ifTrue(function($v) {
69 69
                                 return !is_string($v) || strlen($v) === 0;
70 70
                             })
71 71
                             ->thenInvalid('Consume assertion route must be a non-empty string')
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                     ->scalarNode('metadata')
75 75
                         ->isRequired()
76 76
                         ->validate()
77
-                            ->ifTrue(function ($v) {
77
+                            ->ifTrue(function($v) {
78 78
                                 return !is_string($v) || strlen($v) === 0;
79 79
                             })
80 80
                             ->thenInvalid('Metadata route must be a non-empty string')
Please login to merge, or discard this patch.
DependencyInjection/Compiler/ViewConfigCollectionPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $taggedServices = array_keys($taggedServices);
43 43
 
44 44
         foreach ($taggedServices as $id) {
45
-            $gsspIdMatches= [];
45
+            $gsspIdMatches = [];
46 46
             preg_match('/^gssp\.view_config\.(\w+)$/', $id, $gsspIdMatches);
47 47
             if (!is_array($gsspIdMatches)) {
48 48
                 throw new InvalidConfigurationException('A manually tagged view config service was named incorrectly.');
Please login to merge, or discard this patch.