Code Duplication    Length = 11-16 lines in 2 locations

src/Surfnet/StepupMiddleware/MiddlewareBundle/Console/Command/BootstrapIdentityCommand.php 1 location

@@ 33-43 (lines=11) @@
30
31
final class BootstrapIdentityCommand extends AbstractBootstrapCommand
32
{
33
    protected function configure()
34
    {
35
        $this
36
            ->setDescription('Creates an identity')
37
            ->addArgument('name-id', InputArgument::REQUIRED, 'The NameID of the identity to create')
38
            ->addArgument('institution', InputArgument::REQUIRED, 'The institution of the identity to create')
39
            ->addArgument('common-name', InputArgument::REQUIRED, 'The Common Name of the identity to create')
40
            ->addArgument('email', InputArgument::REQUIRED, 'The e-mail address of the identity to create')
41
            ->addArgument('preferred-locale', InputArgument::REQUIRED, 'The preferred locale of the identity to create')
42
            ->addArgument('actor-id', InputArgument::REQUIRED, 'The id of the vetting actor');
43
    }
44
45
    protected function execute(InputInterface $input, OutputInterface $output)
46
    {

src/Surfnet/StepupMiddleware/MiddlewareBundle/Console/Command/BootstrapIdentityWithYubikeySecondFactorCommand.php 1 location

@@ 35-50 (lines=16) @@
32
33
final class BootstrapIdentityWithYubikeySecondFactorCommand extends Command
34
{
35
    protected function configure()
36
    {
37
        $this
38
            ->setName('middleware:bootstrap:identity-with-yubikey')
39
            ->setDescription('Creates an identity with a vetted Yubikey second factor')
40
            ->addArgument('name-id', InputArgument::REQUIRED, 'The NameID of the identity to create')
41
            ->addArgument('institution', InputArgument::REQUIRED, 'The institution of the identity to create')
42
            ->addArgument('common-name', InputArgument::REQUIRED, 'The Common Name of the identity to create')
43
            ->addArgument('email', InputArgument::REQUIRED, 'The e-mail address of the identity to create')
44
            ->addArgument('preferred-locale', InputArgument::REQUIRED, 'The preferred locale of the identity to create')
45
            ->addArgument(
46
                'yubikey',
47
                InputArgument::REQUIRED,
48
                'The public ID of the Yubikey. Remove the last 32 characters of a Yubikey OTP to acquire this.'
49
            );
50
    }
51
52
    protected function execute(InputInterface $input, OutputInterface $output)
53
    {