Code Duplication    Length = 16-17 lines in 2 locations

src/Surfnet/StepupMiddleware/CommandHandlingBundle/Processor/EmailProcessor.php 2 locations

@@ 161-177 (lines=17) @@
158
        $this->mailService->sendVettedEmail($event->preferredLocale, $event->commonName, $event->email);
159
    }
160
161
    public function handleCompliedWithVettedSecondFactorRevocationEvent(
162
        CompliedWithVettedSecondFactorRevocationEvent $event
163
    ) {
164
        $identity = $this->identityService->find($event->identityId->getIdentityId());
165
166
        if ($identity === null) {
167
            return;
168
        }
169
170
        $this->mailService->sendVettedSecondFactorRevokedByRaEmail(
171
            $identity->preferredLocale,
172
            $identity->commonName,
173
            $identity->email,
174
            $event->secondFactorType,
175
            $event->secondFactorIdentifier
176
        );
177
    }
178
179
    public function handleVettedSecondFactorRevokedEvent(SecondFactorRevokedEvent $event)
180
    {
@@ 179-194 (lines=16) @@
176
        );
177
    }
178
179
    public function handleVettedSecondFactorRevokedEvent(SecondFactorRevokedEvent $event)
180
    {
181
        $identity = $this->identityService->find($event->identityId->getIdentityId());
182
183
        if ($identity === null) {
184
            return;
185
        }
186
187
        $this->mailService->sendVettedSecondFactorRevokedBySelfEmail(
188
            $identity->preferredLocale,
189
            $identity->commonName,
190
            $identity->email,
191
            $event->secondFactorType,
192
            $event->secondFactorIdentifier
193
        );
194
    }
195
196
    /**
197
     * @param EmailVerifiedEvent $event