Code Duplication    Length = 8-9 lines in 2 locations

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

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