Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 152-160 (lines=9) @@
149
        );
150
    }
151
152
    private function provePossession($secondFactorId, $identity, $phoneNumber)
153
    {
154
        $command = new ProvePhonePossessionCommand();
155
        $command->UUID = (string)Uuid::uuid4();
156
        $command->secondFactorId = $secondFactorId;
157
        $command->identityId = $identity->id;
158
        $command->phoneNumber = $phoneNumber;
159
        $this->process($command);
160
    }
161
162
    private function verifyEmail($identity, $unverifiedSecondFactor)
163
    {
@@ 162-169 (lines=8) @@
159
        $this->process($command);
160
    }
161
162
    private function verifyEmail($identity, $unverifiedSecondFactor)
163
    {
164
        $command = new VerifyEmailCommand();
165
        $command->UUID = (string)Uuid::uuid4();
166
        $command->identityId = $identity->id;
167
        $command->verificationNonce = $unverifiedSecondFactor->verificationNonce;
168
        $this->process($command);
169
    }
170
171
    protected function createIdentity(
172
        Institution $institution,