Code Duplication    Length = 13-13 lines in 2 locations

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

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