Code Duplication    Length = 13-13 lines in 2 locations

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

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