Code Duplication    Length = 13-13 lines in 2 locations

src/Surfnet/StepupMiddleware/ApiBundle/Identity/Projector/RaCandidateProjector.php 2 locations

@@ 168-180 (lines=13) @@
165
     * @param RegistrationAuthorityRetractedForInstitutionEvent $event
166
     * @return void
167
     */
168
    public function applyRegistrationAuthorityRetractedForInstitutionEvent(RegistrationAuthorityRetractedForInstitutionEvent $event)
169
    {
170
        $candidate = RaCandidate::nominate(
171
            $event->identityId,
172
            $event->identityInstitution,
173
            $event->nameId,
174
            $event->commonName,
175
            $event->email,
176
            $event->raInstitution
177
        );
178
179
        $this->raCandidateRepository->merge($candidate);
180
    }
181
182
    protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event)
183
    {
@@ 226-238 (lines=13) @@
223
     * @param RegistrationAuthorityRetractedEvent $event
224
     * @return void
225
     */
226
    public function applyRegistrationAuthorityRetractedEvent(RegistrationAuthorityRetractedEvent $event)
227
    {
228
        $candidate = RaCandidate::nominate(
229
            $event->identityId,
230
            $event->identityInstitution,
231
            $event->nameId,
232
            $event->commonName,
233
            $event->email,
234
            $event->identityInstitution
235
        );
236
237
        $this->raCandidateRepository->merge($candidate);
238
    }
239
240
    /**
241
     * @param Institution $institution