Passed
Push — feature/build-and-publish-test... ( 247296...40e3a9 )
by
unknown
05:51 queued 01:50
created
tests/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 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
-if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
8
-    require dirname(__DIR__).'/config/bootstrap.php';
7
+if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
8
+    require dirname(__DIR__) . '/config/bootstrap.php';
9 9
 } elseif (method_exists(Dotenv::class, 'bootEnv')) {
10
-    (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
10
+    (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
11 11
 }
Please login to merge, or discard this patch.
Migrations/InstitutionConfiguration/InstitutionConfigurationState.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $institutionConfigurationOptions,
42 42
         $raLocations
43 43
     ) {
44
-        $optionInstitutions = array_map(function (InstitutionConfigurationOptions $options) {
44
+        $optionInstitutions = array_map(function(InstitutionConfigurationOptions $options) {
45 45
             return $options->institution->getInstitution();
46 46
         }, $institutionConfigurationOptions);
47 47
         $mappedConfigurationOptions = array_combine($optionInstitutions, $institutionConfigurationOptions);
Please login to merge, or discard this patch.
Migrations/InstitutionConfiguration/MappedInstitutionConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $command->useRaLocationsOption            = $this->useRaLocationsOption->isEnabled();
129 129
         $command->showRaaContactInformationOption = $this->showRaaContactInformationOption->isEnabled();
130 130
         $command->verifyEmailOption               = $this->verifyEmailOption->isEnabled();
131
-        $command->selfVetOption= $this->selfVetOption->isEnabled();
131
+        $command->selfVetOption = $this->selfVetOption->isEnabled();
132 132
         $command->numberOfTokensPerIdentityOption = $this->numberOfTokensPerIdentityOption->getNumberOfTokensPerIdentity();
133 133
 
134 134
         return $command;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $command                     = new AddRaLocationCommand();
147 147
             $command->UUID               = (string) Uuid::uuid4();
148 148
             $command->institution        = $institution;
149
-            $command->raLocationId       = $raLocation->id ;
149
+            $command->raLocationId       = $raLocation->id;
150 150
             $command->raLocationName     = $raLocation->name->getRaLocationName();
151 151
             $command->contactInformation = $raLocation->contactInformation->getContactInformation();
152 152
             $command->location           = $raLocation->location->getLocation();
Please login to merge, or discard this patch.
StepupMiddleware/MiddlewareBundle/Service/BootstrapCommandService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
         $preferredLocale
160 160
     ) {
161 161
         $command = new CreateIdentityCommand();
162
-        $command->UUID = (string)Uuid::uuid4();
163
-        $command->id = (string)Uuid::uuid4();
162
+        $command->UUID = (string) Uuid::uuid4();
163
+        $command->id = (string) Uuid::uuid4();
164 164
         $command->institution = $institution->getInstitution();
165 165
         $command->nameId = $nameId->getNameId();
166 166
         $command->commonName = $commonName;
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     public function proveGsspPossession($secondFactorId, $identity, $tokenType, $tokenIdentifier)
176 176
     {
177 177
         $command = new ProveGssfPossessionCommand();
178
-        $command->UUID = (string)Uuid::uuid4();
178
+        $command->UUID = (string) Uuid::uuid4();
179 179
         $command->secondFactorId = $secondFactorId;
180 180
         $command->identityId = $identity->id;
181 181
         $command->stepupProvider = $tokenType;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     public function provePhonePossession($secondFactorId, $identity, $phoneNumber)
188 188
     {
189 189
         $command = new ProvePhonePossessionCommand();
190
-        $command->UUID = (string)Uuid::uuid4();
190
+        $command->UUID = (string) Uuid::uuid4();
191 191
         $command->secondFactorId = $secondFactorId;
192 192
         $command->identityId = $identity->id;
193 193
         $command->phoneNumber = $phoneNumber;
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     public function proveYubikeyPossession($secondFactorId, $identity, $yubikeyPublicId)
199 199
     {
200 200
         $command = new ProveYubikeyPossessionCommand();
201
-        $command->UUID = (string)Uuid::uuid4();
201
+        $command->UUID = (string) Uuid::uuid4();
202 202
         $command->secondFactorId = $secondFactorId;
203 203
         $command->identityId = $identity->id;
204 204
         $command->yubikeyPublicId = $yubikeyPublicId;
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         );
214 214
 
215 215
         $command = new VerifyEmailCommand();
216
-        $command->UUID = (string)Uuid::uuid4();
216
+        $command->UUID = (string) Uuid::uuid4();
217 217
         $command->identityId = $identity->id;
218 218
         $command->verificationNonce = $unverifiedSecondFactor->verificationNonce;
219 219
 
@@ -223,11 +223,11 @@  discard block
 block discarded – undo
223 223
     public function migrateVettedSecondFactor(Identity $sourceIdentity, Identity $targetIdentity, VettedSecondFactor $vettedSecondFactor)
224 224
     {
225 225
         $command = new CommandHandlingMigrateSecondFactorCommand();
226
-        $command->UUID = (string)Uuid::uuid4();
226
+        $command->UUID = (string) Uuid::uuid4();
227 227
         $command->sourceIdentityId = $sourceIdentity->id;
228 228
         $command->targetIdentityId = $targetIdentity->id;
229 229
         $command->sourceSecondFactorId = $vettedSecondFactor->id;
230
-        $command->targetSecondFactorId = (string)Uuid::uuid4();
230
+        $command->targetSecondFactorId = (string) Uuid::uuid4();
231 231
 
232 232
         $this->pipeline->process($command);
233 233
     }
Please login to merge, or discard this patch.
MiddlewareBundle/Service/VerifiedSecondFactorReminderMailService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             );
134 134
         }
135 135
 
136
-        $rasWithoutRaas = array_filter($ras, function (RegistrationAuthorityCredentials $ra) {
136
+        $rasWithoutRaas = array_filter($ras, function(RegistrationAuthorityCredentials $ra) {
137 137
             return !$ra->isRaa();
138 138
         });
139 139
 
Please login to merge, or discard this patch.
StepupMiddleware/MiddlewareBundle/Console/Command/ReplayEventsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             }
100 100
         }
101 101
 
102
-        $increments = (int)$input->getOption('increments');
102
+        $increments = (int) $input->getOption('increments');
103 103
         if ($increments < 1) {
104 104
             $output->writeln(
105 105
                 $formatter->formatBlock(
Please login to merge, or discard this patch.
StepupMiddleware/MiddlewareBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                         ->info('The amount of seconds after which the email verification url/code expires')
36 36
                         ->defaultValue(3600)
37 37
                         ->validate()
38
-                            ->ifTrue(function ($seconds) {
38
+                            ->ifTrue(function($seconds) {
39 39
                                 return !is_int($seconds) || $seconds < 1;
40 40
                             })
41 41
                             ->thenInvalid(
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/MiddlewareBundle/EventSourcing/EventCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     public function formatAsEventStreamTypes()
59 59
     {
60 60
         return array_map(
61
-            function ($eventName) {
61
+            function($eventName) {
62 62
                 return strtr($eventName, '\\', '.');
63 63
             },
64 64
             $this->eventNames
Please login to merge, or discard this patch.
StepupMiddleware/MiddlewareBundle/EventSourcing/ProjectorCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     public function getProjectorNames()
45 45
     {
46 46
         return array_map(
47
-            function (ProjectorInterface $projector) {
47
+            function(ProjectorInterface $projector) {
48 48
                 return get_class($projector);
49 49
             },
50 50
             array_values($this->projectors)
Please login to merge, or discard this patch.