Code Duplication    Length = 11-11 lines in 2 locations

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

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