Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 128-138 (lines=11) @@
125
        $this->raSecondFactorRepository->save($secondFactor);
126
    }
127
128
    public function applyYubikeyPossessionProvenEvent(YubikeyPossessionProvenEvent $event)
129
    {
130
        $this->saveRaSecondFactor(
131
            (string) $event->identityId,
132
            (string) $event->secondFactorId,
133
            'yubikey',
134
            (string) $event->yubikeyPublicId,
135
            $event->commonName,
136
            $event->email
137
        );
138
    }
139
140
    public function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event)
141
    {
@@ 140-150 (lines=11) @@
137
        );
138
    }
139
140
    public function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event)
141
    {
142
        $this->saveRaSecondFactor(
143
            (string) $event->identityId,
144
            (string) $event->secondFactorId,
145
            'yubikey',
146
            (string) $event->yubikeyPublicId,
147
            $event->commonName,
148
            $event->email
149
        );
150
    }
151
152
    public function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event)
153
    {