Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 162-170 (lines=9) @@
159
        );
160
    }
161
162
    private function provePossession($secondFactorId, $identity, $phoneNumber)
163
    {
164
        $command = new ProvePhonePossessionCommand();
165
        $command->UUID = (string)Uuid::uuid4();
166
        $command->secondFactorId = $secondFactorId;
167
        $command->identityId = $identity->id;
168
        $command->phoneNumber = $phoneNumber;
169
        $this->process($command);
170
    }
171
172
    private function verifyEmail($identity, $unverifiedSecondFactor)
173
    {
@@ 172-179 (lines=8) @@
169
        $this->process($command);
170
    }
171
172
    private function verifyEmail($identity, $unverifiedSecondFactor)
173
    {
174
        $command = new VerifyEmailCommand();
175
        $command->UUID = (string)Uuid::uuid4();
176
        $command->identityId = $identity->id;
177
        $command->verificationNonce = $unverifiedSecondFactor->verificationNonce;
178
        $this->process($command);
179
    }
180
181
    protected function createIdentity(
182
        Institution $institution,