Code Duplication    Length = 8-9 lines in 2 locations

src/Surfnet/StepupMiddleware/MiddlewareBundle/Console/Command/BootstrapSmsSecondFactorCommand.php 2 locations

@@ 140-148 (lines=9) @@
137
        );
138
    }
139
140
    private function provePossession($secondFactorId, $identity, $phoneNumber)
141
    {
142
        $command = new ProvePhonePossessionCommand();
143
        $command->UUID = (string)Uuid::uuid4();
144
        $command->secondFactorId = $secondFactorId;
145
        $command->identityId = $identity->id;
146
        $command->phoneNumber = $phoneNumber;
147
        $this->process($command);
148
    }
149
150
    private function verifyEmail($identity, $unverifiedSecondFactor)
151
    {
@@ 150-157 (lines=8) @@
147
        $this->process($command);
148
    }
149
150
    private function verifyEmail($identity, $unverifiedSecondFactor)
151
    {
152
        $command = new VerifyEmailCommand();
153
        $command->UUID = (string)Uuid::uuid4();
154
        $command->identityId = $identity->id;
155
        $command->verificationNonce = $unverifiedSecondFactor->verificationNonce;
156
        $this->process($command);
157
    }
158
}
159