Code Duplication    Length = 11-11 lines in 2 locations

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

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