Code Duplication    Length = 11-11 lines in 2 locations

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

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