@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function applyNewInstitutionConfigurationCreatedEvent(NewInstitutionConfigurationCreatedEvent $event): void |
39 | 39 | { |
40 | 40 | $institutionConfiguration = new InstitutionConfiguration( |
41 | - (string)$event->institution, |
|
41 | + (string) $event->institution, |
|
42 | 42 | $event->ssoOn2faOption->isEnabled(), |
43 | 43 | $event->ssoRegistrationBypassOption->isEnabled(), |
44 | 44 | ); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | public function applySsoOn2faOptionChangedEvent(SsoOn2faOptionChangedEvent $event): void |
50 | 50 | { |
51 | - $institutionConfiguration = $this->repository->findByInstitution((string)$event->institution); |
|
51 | + $institutionConfiguration = $this->repository->findByInstitution((string) $event->institution); |
|
52 | 52 | if ($institutionConfiguration instanceof InstitutionConfiguration) { |
53 | 53 | $institutionConfiguration->ssoOn2faEnabled = $event->ssoOn2faOption->isEnabled(); |
54 | 54 | $this->repository->save($institutionConfiguration); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | // It can happen that the event changed for an institution that already exists, but is not yet projected to |
58 | 58 | // this projection. In that case we can create it. |
59 | 59 | $institutionConfiguration = new InstitutionConfiguration( |
60 | - (string)$event->institution, |
|
60 | + (string) $event->institution, |
|
61 | 61 | $event->ssoOn2faOption->isEnabled(), |
62 | 62 | false, |
63 | 63 | ); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | public function applySsoRegistrationBypassOptionChangedEvent(SsoRegistrationBypassOptionChangedEvent $event): void |
68 | 68 | { |
69 | - $institutionConfiguration = $this->repository->findByInstitution((string)$event->institution); |
|
69 | + $institutionConfiguration = $this->repository->findByInstitution((string) $event->institution); |
|
70 | 70 | if ($institutionConfiguration instanceof InstitutionConfiguration) { |
71 | 71 | $institutionConfiguration->ssoRegistrationBypass = $event->ssoRegistrationBypassOption->isEnabled(); |
72 | 72 | $this->repository->save($institutionConfiguration); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | // It can happen that the event changed for an institution that already exists, but is not yet projected to |
76 | 76 | // this projection. In that case we can create it. |
77 | 77 | $institutionConfiguration = new InstitutionConfiguration( |
78 | - (string)$event->institution, |
|
78 | + (string) $event->institution, |
|
79 | 79 | false, |
80 | 80 | $event->ssoRegistrationBypassOption->isEnabled(), |
81 | 81 | ); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | public function applyInstitutionConfigurationRemovedEvent(InstitutionConfigurationRemovedEvent $event): void |
86 | 86 | { |
87 | - $this->repository->removeFor((string)$event->institution); |
|
87 | + $this->repository->removeFor((string) $event->institution); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event): void |