Code Duplication    Length = 11-11 lines in 2 locations

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

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