Passed
Push — feature/updates-nov25 ( 25d33b...e99728 )
by Johan
05:23
created
StepupMiddleware/MiddlewareBundle/EventSourcing/DBALEventHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,16 +110,16 @@
 block discarded – undo
110 110
 
111 111
     private function deserializeEvent(array $row): DomainMessage
112 112
     {
113
-        $event = $this->payloadSerializer->deserialize(json_decode((string)$row['payload'], true));
113
+        $event = $this->payloadSerializer->deserialize(json_decode((string) $row['payload'], true));
114 114
 
115 115
         if ($event instanceof Forgettable) {
116
-            $event->setSensitiveData(SensitiveData::deserialize(json_decode((string)$row['sensitive_data'], true)));
116
+            $event->setSensitiveData(SensitiveData::deserialize(json_decode((string) $row['sensitive_data'], true)));
117 117
         }
118 118
 
119 119
         return new DomainMessage(
120 120
             $row['uuid'],
121 121
             $row['playhead'],
122
-            $this->metadataSerializer->deserialize(json_decode((string)$row['metadata'], true)),
122
+            $this->metadataSerializer->deserialize(json_decode((string) $row['metadata'], true)),
123 123
             $event,
124 124
             DateTime::fromString($row['recorded_on']),
125 125
         );
Please login to merge, or discard this patch.
StepupMiddleware/MiddlewareBundle/Service/BootstrapCommandService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         );
108 108
 
109 109
         $command = new VetSecondFactorCommand();
110
-        $command->UUID = (string)Uuid::uuid4();
110
+        $command->UUID = (string) Uuid::uuid4();
111 111
         $command->authorityId = $actorId;
112 112
         $command->identityId = $identity->id;
113 113
         $command->secondFactorId = $secondFactorId;
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
         string $preferredLocale,
129 129
     ): CreateIdentityCommand {
130 130
         $command = new CreateIdentityCommand();
131
-        $command->UUID = (string)Uuid::uuid4();
132
-        $command->id = (string)Uuid::uuid4();
131
+        $command->UUID = (string) Uuid::uuid4();
132
+        $command->id = (string) Uuid::uuid4();
133 133
         $command->institution = $institution->getInstitution();
134 134
         $command->nameId = $nameId->getNameId();
135 135
         $command->commonName = $commonName;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         string $tokenIdentifier
149 149
     ): void {
150 150
         $command = new ProveGssfPossessionCommand();
151
-        $command->UUID = (string)Uuid::uuid4();
151
+        $command->UUID = (string) Uuid::uuid4();
152 152
         $command->secondFactorId = $secondFactorId;
153 153
         $command->identityId = $identity->id;
154 154
         $command->stepupProvider = $tokenType;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         string $phoneNumber
164 164
     ): void {
165 165
         $command = new ProvePhonePossessionCommand();
166
-        $command->UUID = (string)Uuid::uuid4();
166
+        $command->UUID = (string) Uuid::uuid4();
167 167
         $command->secondFactorId = $secondFactorId;
168 168
         $command->identityId = $identity->id;
169 169
         $command->phoneNumber = $phoneNumber;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         string $yubikeyPublicId
178 178
     ): void {
179 179
         $command = new ProveYubikeyPossessionCommand();
180
-        $command->UUID = (string)Uuid::uuid4();
180
+        $command->UUID = (string) Uuid::uuid4();
181 181
         $command->secondFactorId = $secondFactorId;
182 182
         $command->identityId = $identity->id;
183 183
         $command->yubikeyPublicId = $yubikeyPublicId;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         );
195 195
 
196 196
         $command = new VerifyEmailCommand();
197
-        $command->UUID = (string)Uuid::uuid4();
197
+        $command->UUID = (string) Uuid::uuid4();
198 198
         $command->identityId = $identity->id;
199 199
         $command->verificationNonce = $unverifiedSecondFactor->verificationNonce;
200 200
 
@@ -207,11 +207,11 @@  discard block
 block discarded – undo
207 207
         VettedSecondFactor $vettedSecondFactor,
208 208
     ): void {
209 209
         $command = new CommandHandlingMigrateSecondFactorCommand();
210
-        $command->UUID = (string)Uuid::uuid4();
210
+        $command->UUID = (string) Uuid::uuid4();
211 211
         $command->sourceIdentityId = $sourceIdentity->id;
212 212
         $command->targetIdentityId = $targetIdentity->id;
213 213
         $command->sourceSecondFactorId = $vettedSecondFactor->id;
214
-        $command->targetSecondFactorId = (string)Uuid::uuid4();
214
+        $command->targetSecondFactorId = (string) Uuid::uuid4();
215 215
 
216 216
         $this->pipeline->process($command);
217 217
     }
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/MiddlewareBundle/Service/EventStreamReplayer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
 
157 157
             $output->writeln(['', '<info>Done</info>', '']);
158 158
         } catch (Throwable $e) {
159
-            echo $e->getMessage()."\n";
159
+            echo $e->getMessage() . "\n";
160 160
 
161 161
             $this->connectionHelper->rollBack();
162 162
             if (isset($replayProgress)) {
Please login to merge, or discard this patch.
MiddlewareBundle/Service/VerifiedSecondFactorReminderMailService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             'templateString' => $emailTemplate->htmlContent,
132 132
             'locale' => $locale,
133 133
             'commonName' => $commonName,
134
-            'expirationDate' => (string)$requestedAt,
134
+            'expirationDate' => (string) $requestedAt,
135 135
             'registrationCode' => $registrationCode,
136 136
             'raLocations' => $raLocations,
137 137
         ];
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             'templateString' => $emailTemplate->htmlContent,
175 175
             'locale' => $locale,
176 176
             'commonName' => $commonName,
177
-            'expirationDate' => (string)$requestedAt,
177
+            'expirationDate' => (string) $requestedAt,
178 178
             'registrationCode' => $registrationCode,
179 179
             'ras' => $ras,
180 180
         ];
Please login to merge, or discard this patch.
MiddlewareBundle/Service/SecondFactorDisplayNameResolverService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
      */
32 32
     public function resolveByType(SecondFactorType $secondFactorType): string
33 33
     {
34
-        return $this->secondFactors[(string)$secondFactorType] ?? ucfirst((string)$secondFactorType);
34
+        return $this->secondFactors[(string) $secondFactorType] ?? ucfirst((string) $secondFactorType);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Configuration/Query/RaLocationQuery.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
     /**
36 36
      * @var string|Institution
37 37
      */
38
-    public string|Institution $institution;
38
+    public string | Institution $institution;
39 39
 
40 40
     /**
41 41
      * @var string
Please login to merge, or discard this patch.
Surfnet/Stepup/Identity/Event/U2fDevicePossessionProvenAndVerifiedEvent.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             Email::unknown(),
106 106
             new Locale($data['preferred_locale']),
107 107
             DateTime::fromString($data['registration_requested_at']),
108
-            (string)$data['registration_code'],
108
+            (string) $data['registration_code'],
109 109
         );
110 110
     }
111 111
 
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
     public function serialize(): array
118 118
     {
119 119
         return [
120
-            'identity_id' => (string)$this->identityId,
121
-            'identity_institution' => (string)$this->identityInstitution,
122
-            'second_factor_id' => (string)$this->secondFactorId,
123
-            'registration_requested_at' => (string)$this->registrationRequestedAt,
120
+            'identity_id' => (string) $this->identityId,
121
+            'identity_institution' => (string) $this->identityInstitution,
122
+            'second_factor_id' => (string) $this->secondFactorId,
123
+            'registration_requested_at' => (string) $this->registrationRequestedAt,
124 124
             'registration_code' => $this->registrationCode,
125
-            'preferred_locale' => (string)$this->preferredLocale,
125
+            'preferred_locale' => (string) $this->preferredLocale,
126 126
         ];
127 127
     }
128 128
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/SecondFactorVettedEvent.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,12 +123,12 @@
 block discarded – undo
123 123
     public function serialize(): array
124 124
     {
125 125
         return [
126
-            'identity_id' => (string)$this->identityId,
127
-            'name_id' => (string)$this->nameId,
128
-            'identity_institution' => (string)$this->identityInstitution,
129
-            'second_factor_id' => (string)$this->secondFactorId,
130
-            'second_factor_type' => (string)$this->secondFactorType,
131
-            'preferred_locale' => (string)$this->preferredLocale,
126
+            'identity_id' => (string) $this->identityId,
127
+            'name_id' => (string) $this->nameId,
128
+            'identity_institution' => (string) $this->identityInstitution,
129
+            'second_factor_id' => (string) $this->secondFactorId,
130
+            'second_factor_type' => (string) $this->secondFactorType,
131
+            'preferred_locale' => (string) $this->preferredLocale,
132 132
         ];
133 133
     }
134 134
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/IdentityAccreditedAsRaEvent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,12 +86,12 @@
 block discarded – undo
86 86
     public function serialize(): array
87 87
     {
88 88
         return [
89
-            'identity_id' => (string)$this->identityId,
90
-            'name_id' => (string)$this->nameId,
91
-            'institution' => (string)$this->identityInstitution,
89
+            'identity_id' => (string) $this->identityId,
90
+            'name_id' => (string) $this->nameId,
91
+            'institution' => (string) $this->identityInstitution,
92 92
             'registration_authority_role' => $this->registrationAuthorityRole->serialize(),
93
-            'location' => (string)$this->location,
94
-            'contact_information' => (string)$this->contactInformation,
93
+            'location' => (string) $this->location,
94
+            'contact_information' => (string) $this->contactInformation,
95 95
         ];
96 96
     }
97 97
 
Please login to merge, or discard this patch.