Passed
Push — feature/updates-nov25 ( 7756b8...94cd38 )
by Johan
05:12
created
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/AuditLogEntry.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -168,18 +168,18 @@
 block discarded – undo
168 168
     {
169 169
         return [
170 170
             'actor_id' => $this->actorId,
171
-            'actor_institution' => $this->actorInstitution instanceof Institution ? (string)$this->actorInstitution : null,
172
-            'actor_common_name' => (string)$this->actorCommonName,
171
+            'actor_institution' => $this->actorInstitution instanceof Institution ? (string) $this->actorInstitution : null,
172
+            'actor_common_name' => (string) $this->actorCommonName,
173 173
             'identity_id' => $this->identityId,
174
-            'identity_institution' => (string)$this->identityInstitution,
175
-            'ra_institution' => (string)$this->raInstitution,
174
+            'identity_institution' => (string) $this->identityInstitution,
175
+            'ra_institution' => (string) $this->raInstitution,
176 176
             'second_factor_id' => $this->secondFactorId,
177 177
             'second_factor_type' => $this->secondFactorType ?: null,
178 178
             'second_factor_identifier' => $this->secondFactorIdentifier,
179 179
             'recovery_token_type' => $this->recoveryTokenType,
180 180
             'recovery_token_identifier' => $this->recoveryTokenIdentifier,
181 181
             'action' => $this->mapEventToAction($this->event),
182
-            'recorded_on' => (string)$this->recordedOn,
182
+            'recorded_on' => (string) $this->recordedOn,
183 183
         ];
184 184
     }
185 185
 
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorStatusType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 sprintf(
52 52
                     "Encountered illegal second factor status of type %s '%s', expected a SecondFactorStatus instance",
53 53
                     get_debug_type($value),
54
-                    is_scalar($value) ? (string)$value : '',
54
+                    is_scalar($value) ? (string) $value : '',
55 55
                 ),
56 56
             );
57 57
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             return 40;
69 69
         }
70 70
 
71
-        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value));
71
+        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value));
72 72
     }
73 73
 
74 74
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function convertToPHPValue(mixed $value, AbstractPlatform $platform): SecondFactorStatus
78 78
     {
79 79
         if (is_scalar($value)) {
80
-            $value = (string)$value;
80
+            $value = (string) $value;
81 81
         }
82 82
         if ($value === '0') {
83 83
             return SecondFactorStatus::unverified();
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Doctrine/Type/RecoveryTokenStatusType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 sprintf(
46 46
                     "Encountered illegal recovery token status of type %s '%s', expected a RecoveryTokenStatus instance",
47 47
                     get_debug_type($value),
48
-                    is_scalar($value) ? (string)$value : '',
48
+                    is_scalar($value) ? (string) $value : '',
49 49
                 ),
50 50
             );
51 51
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             return 20;
59 59
         }
60 60
 
61
-        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value));
61
+        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value));
62 62
     }
63 63
 
64 64
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function convertToPHPValue(mixed $value, AbstractPlatform $platform): RecoveryTokenStatus
68 68
     {
69 69
         if (is_scalar($value)) {
70
-            $value = (string)$value;
70
+            $value = (string) $value;
71 71
         }
72 72
 
73 73
         if ($value === '0') {
Please login to merge, or discard this patch.
ManagementBundle/Validator/ReconfigureInstitutionRequestValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         }
236 236
 
237 237
         $this->whitelistedInstitutions = array_map(
238
-            fn(WhitelistEntry $whitelistEntry): string => (string)$whitelistEntry->institution,
238
+            fn(WhitelistEntry $whitelistEntry): string => (string) $whitelistEntry->institution,
239 239
             $this->whitelistService->getAllEntries()->toArray(),
240 240
         );
241 241
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         return array_filter(
258 258
             $institutions,
259
-            function ($institution) use ($normalizedConfiguredInstitutions): bool {
259
+            function($institution) use ($normalizedConfiguredInstitutions): bool {
260 260
                 $normalizedInstitution = strtolower($institution);
261 261
 
262 262
                 return !in_array($normalizedInstitution, $normalizedConfiguredInstitutions);
Please login to merge, or discard this patch.