Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 193-205 (lines=13) @@
190
     * @param RegistrationAuthorityRetractedForInstitutionEvent $event
191
     * @return void
192
     */
193
    public function applyRegistrationAuthorityRetractedForInstitutionEvent(RegistrationAuthorityRetractedForInstitutionEvent $event)
194
    {
195
        $candidate = RaCandidate::nominate(
196
            $event->identityId,
197
            $event->identityInstitution,
198
            $event->nameId,
199
            $event->commonName,
200
            $event->email,
201
            $event->raInstitution
202
        );
203
204
        $this->raCandidateRepository->merge($candidate);
205
    }
206
207
    protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event)
208
    {
@@ 251-263 (lines=13) @@
248
     * @param RegistrationAuthorityRetractedEvent $event
249
     * @return void
250
     */
251
    public function applyRegistrationAuthorityRetractedEvent(RegistrationAuthorityRetractedEvent $event)
252
    {
253
        $candidate = RaCandidate::nominate(
254
            $event->identityId,
255
            $event->identityInstitution,
256
            $event->nameId,
257
            $event->commonName,
258
            $event->email,
259
            $event->raInstitution
260
        );
261
262
        $this->raCandidateRepository->merge($candidate);
263
    }
264
265
    /**
266
     * @param Institution $institution