Passed
Pull Request — main (#526)
by
unknown
11:42 queued 05:57
created
src/Surfnet/Stepup/Identity/Event/IdentityRestoredEvent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@
 block discarded – undo
51 51
     public function serialize(): array
52 52
     {
53 53
         return [
54
-            'id' => (string)$this->id,
55
-            'institution' => (string)$this->institution,
56
-            'common_name' => (string)$this->commonName,
57
-            'email' => (string)$this->email,
54
+            'id' => (string) $this->id,
55
+            'institution' => (string) $this->institution,
56
+            'common_name' => (string) $this->commonName,
57
+            'email' => (string) $this->email,
58 58
         ];
59 59
     }
60 60
 
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Identity/Projector/IdentityProjector.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->identityRepository->save(
44 44
             Identity::create(
45
-                (string)$event->identityId,
45
+                (string) $event->identityId,
46 46
                 $event->identityInstitution,
47 47
                 $event->nameId,
48 48
                 $event->email,
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function applyIdentityRenamedEvent(IdentityRenamedEvent $event): void
56 56
     {
57
-        $identity = $this->identityRepository->find((string)$event->identityId);
57
+        $identity = $this->identityRepository->find((string) $event->identityId);
58 58
         $identity->commonName = $event->commonName;
59 59
 
60 60
         $this->identityRepository->save($identity);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function applyIdentityEmailChangedEvent(IdentityEmailChangedEvent $event): void
64 64
     {
65
-        $identity = $this->identityRepository->find((string)$event->identityId);
65
+        $identity = $this->identityRepository->find((string) $event->identityId);
66 66
         $identity->email = $event->email;
67 67
 
68 68
         $this->identityRepository->save($identity);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function applyLocalePreferenceExpressedEvent(LocalePreferenceExpressedEvent $event): void
72 72
     {
73
-        $identity = $this->identityRepository->find((string)$event->identityId);
73
+        $identity = $this->identityRepository->find((string) $event->identityId);
74 74
         $identity->preferredLocale = $event->preferredLocale;
75 75
 
76 76
         $this->identityRepository->save($identity);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     public function applyIdentityRestoredEvent(IdentityRestoredEvent $event): void
80 80
     {
81
-        $identity = $this->identityRepository->find((string)$event->identityId);
81
+        $identity = $this->identityRepository->find((string) $event->identityId);
82 82
         $identity->email = $event->email;
83 83
         $identity->commonName = $event->commonName;
84 84
 
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function applySecondFactorVettedEvent(SecondFactorVettedEvent $event): void
90 90
     {
91
-        $this->determinePossessionOfSelfAssertedToken($event->vettingType, (string)$event->identityId);
91
+        $this->determinePossessionOfSelfAssertedToken($event->vettingType, (string) $event->identityId);
92 92
     }
93 93
 
94 94
     public function applySecondFactorVettedWithoutTokenProofOfPossession(
95 95
         SecondFactorVettedWithoutTokenProofOfPossession $event,
96 96
     ): void {
97
-        $this->determinePossessionOfSelfAssertedToken($event->vettingType, (string)$event->identityId);
97
+        $this->determinePossessionOfSelfAssertedToken($event->vettingType, (string) $event->identityId);
98 98
     }
99 99
 
100 100
     private function determinePossessionOfSelfAssertedToken(VettingType $vettingType, string $identityId): void
Please login to merge, or discard this patch.