Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 201-211 (lines=11) @@
198
        );
199
    }
200
201
    public function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event)
202
    {
203
        $this->saveRaSecondFactor(
204
            (string) $event->identityId,
205
            (string) $event->secondFactorId,
206
            'u2f',
207
            $event->keyHandle->getValue(),
208
            $event->commonName,
209
            $event->email
210
        );
211
    }
212
213
    public function applyU2fDevicePossessionProvenAndVerifiedEvent(U2fDevicePossessionProvenAndVerifiedEvent $event)
214
    {
@@ 213-223 (lines=11) @@
210
        );
211
    }
212
213
    public function applyU2fDevicePossessionProvenAndVerifiedEvent(U2fDevicePossessionProvenAndVerifiedEvent $event)
214
    {
215
        $this->saveRaSecondFactor(
216
            (string) $event->identityId,
217
            (string) $event->secondFactorId,
218
            'u2f',
219
            $event->keyHandle->getValue(),
220
            $event->commonName,
221
            $event->email
222
        );
223
    }
224
225
    /**
226
     * @param string $identityId