Passed
Push — main ( b1b192...ee75fd )
by Thijs
04:29
created
src/Surfnet/Stepup/Identity/Value/SelfAssertedRegistrationVettingType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         return [
55 55
             'type' => $this->type(),
56
-            'recovery_token_id' => (string)$this->authoringRecoveryToken,
56
+            'recovery_token_id' => (string) $this->authoringRecoveryToken,
57 57
         ];
58 58
     }
59 59
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Entity/InstitutionCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function set(Institution $institution)
36 36
     {
37
-        $this->institutions[(string)$institution] = $institution;
37
+        $this->institutions[(string) $institution] = $institution;
38 38
     }
39 39
 
40 40
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function update(Institutions $institutions)
44 44
     {
45 45
         foreach ($institutions as $institution) {
46
-            $this->institutions[(string)$institutions] = $institution;
46
+            $this->institutions[(string) $institutions] = $institution;
47 47
         }
48 48
     }
49 49
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function get(Institution $institution)
55 55
     {
56
-        return $this->institutions[(string)$institution];
56
+        return $this->institutions[(string) $institution];
57 57
     }
58 58
 
59 59
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function exists(Institution $institution)
64 64
     {
65
-        return array_key_exists((string)$institution, $this->institutions);
65
+        return array_key_exists((string) $institution, $this->institutions);
66 66
     }
67 67
 
68 68
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function remove(Institution $institution)
72 72
     {
73
-        unset($this->institutions[(string)$institution]);
73
+        unset($this->institutions[(string) $institution]);
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Entity/RecoveryTokenCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function set(RecoveryToken $recoveryToken): void
33 33
     {
34
-        $this->recoveryTokens[(string)$recoveryToken->getTokenId()] = $recoveryToken;
34
+        $this->recoveryTokens[(string) $recoveryToken->getTokenId()] = $recoveryToken;
35 35
     }
36 36
 
37 37
     public function get(RecoveryTokenId $id): RecoveryToken
38 38
     {
39
-        if (!array_key_exists((string)$id, $this->recoveryTokens)) {
39
+        if (!array_key_exists((string) $id, $this->recoveryTokens)) {
40 40
             throw new DomainException(sprintf('Unable to find recovery token with id %s', $id));
41 41
         }
42
-        return $this->recoveryTokens[(string)$id];
42
+        return $this->recoveryTokens[(string) $id];
43 43
     }
44 44
 
45 45
     public function hasType(RecoveryTokenType $type)
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function remove(RecoveryTokenId $recoveryTokenId)
61 61
     {
62
-        unset($this->recoveryTokens[(string)$recoveryTokenId]);
62
+        unset($this->recoveryTokens[(string) $recoveryTokenId]);
63 63
     }
64 64
 
65 65
     public function first(): RecoveryToken
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Entity/ConfigurableSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         return new self(
70 70
             TimeFrame::ofSeconds($emailVerificationTimeFrame),
71 71
             array_map(
72
-                function ($locale) {
72
+                function($locale) {
73 73
                     return new Locale($locale);
74 74
                 },
75 75
                 $locales
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         return array_reduce(
98 98
             $this->locales,
99
-            function ($supported, Locale $supportedLocale) use ($locale) {
99
+            function($supported, Locale $supportedLocale) use ($locale) {
100 100
                 return $supported || $supportedLocale->equals($locale);
101 101
             },
102 102
             false
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Entity/RegistrationAuthorityCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function set(Institution $institution, RegistrationAuthority $registrationAuthority)
35 35
     {
36
-        $this->registrationAuthorities[(string)$institution] = $registrationAuthority;
36
+        $this->registrationAuthorities[(string) $institution] = $registrationAuthority;
37 37
     }
38 38
 
39 39
     /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function get(Institution $institution)
44 44
     {
45
-        return $this->registrationAuthorities[(string)$institution];
45
+        return $this->registrationAuthorities[(string) $institution];
46 46
     }
47 47
 
48 48
     /**
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function exists(Institution $institution)
53 53
     {
54
-        return array_key_exists((string)$institution, $this->registrationAuthorities);
54
+        return array_key_exists((string) $institution, $this->registrationAuthorities);
55 55
     }
56 56
 
57 57
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function remove(Institution $institution)
61 61
     {
62
-        unset($this->registrationAuthorities[(string)$institution]);
62
+        unset($this->registrationAuthorities[(string) $institution]);
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Entity/SecondFactorCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         return array_reduce(
33 33
             $this->toArray(),
34
-            function (SecondFactor $carry, SecondFactor $item) use ($service) {
34
+            function(SecondFactor $carry, SecondFactor $item) use ($service) {
35 35
                 return $service->hasEqualOrHigherLoaComparedTo($carry->getType(), $item->getType()) ? $carry : $item;
36 36
             },
37 37
             $this->first() ?: null
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/SecondFactorMigratedEvent.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -179,12 +179,12 @@
 block discarded – undo
179 179
     public function serialize(): array
180 180
     {
181 181
         return [
182
-            'identity_id' => (string)$this->identityId,
183
-            'source_institution' => (string)$this->sourceInstitution,
184
-            'target_name_id' => (string)$this->targetNameId,
185
-            'identity_institution' => (string)$this->identityInstitution,
186
-            'second_factor_id' => (string)$this->secondFactorId,
187
-            'new_second_factor_id' => (string)$this->newSecondFactorId,
182
+            'identity_id' => (string) $this->identityId,
183
+            'source_institution' => (string) $this->sourceInstitution,
184
+            'target_name_id' => (string) $this->targetNameId,
185
+            'identity_institution' => (string) $this->identityInstitution,
186
+            'second_factor_id' => (string) $this->secondFactorId,
187
+            'new_second_factor_id' => (string) $this->newSecondFactorId,
188 188
             'vetting_type' => $this->vettingType->jsonSerialize(),
189 189
             'second_factor_type' => (string) $this->secondFactorType,
190 190
             'preferred_locale' => (string) $this->preferredLocale,
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/SecondFactorMigratedToEvent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,11 +122,11 @@
 block discarded – undo
122 122
     public function serialize(): array
123 123
     {
124 124
         return [
125
-            'identity_id' => (string)$this->identityId,
126
-            'identity_institution' => (string)$this->identityInstitution,
127
-            'second_factor_id' => (string)$this->secondFactorId,
128
-            'target_institution' => (string)$this->targetInstitution,
129
-            'target_second_factor_id' => (string)$this->targetSecondFactorId,
125
+            'identity_id' => (string) $this->identityId,
126
+            'identity_institution' => (string) $this->identityInstitution,
127
+            'second_factor_id' => (string) $this->secondFactorId,
128
+            'target_institution' => (string) $this->targetInstitution,
129
+            'target_second_factor_id' => (string) $this->targetSecondFactorId,
130 130
             'second_factor_type' => (string) $this->secondFactorType,
131 131
         ];
132 132
     }
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/RecoveryTokenRevokedEvent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@
 block discarded – undo
88 88
     final public function serialize(): array
89 89
     {
90 90
         return [
91
-            'identity_id' => (string)$this->identityId,
92
-            'identity_institution' => (string)$this->identityInstitution,
93
-            'recovery_token_id' => (string)$this->recoveryTokenId,
94
-            'recovery_token_type' => (string)$this->recoveryTokenType,
91
+            'identity_id' => (string) $this->identityId,
92
+            'identity_institution' => (string) $this->identityInstitution,
93
+            'recovery_token_id' => (string) $this->recoveryTokenId,
94
+            'recovery_token_type' => (string) $this->recoveryTokenType,
95 95
         ];
96 96
     }
97 97
 
Please login to merge, or discard this patch.