Code Duplication    Length = 14-14 lines in 2 locations

lib/ComponentManager/Command/InstallCommand.php 1 location

@@ 66-79 (lines=14) @@
63
    /**
64
     * @inheritdoc Command
65
     */
66
    protected function configure() {
67
        $this
68
            ->setName('install')
69
            ->setDescription('Installs all packages from componentmgr.json')
70
            ->setHelp(static::HELP)
71
            ->setDefinition([
72
                new InputOption(Argument::OPTION_ATTEMPTS, null,
73
                                InputOption::VALUE_REQUIRED,
74
                                Argument::OPTION_ATTEMPTS_HELP),
75
                new InputOption(Argument::OPTION_TIMEOUT, null,
76
                                InputOption::VALUE_REQUIRED,
77
                                Argument::OPTION_TIMEOUT_HELP, 60),
78
            ]);
79
    }
80
81
    /**
82
     * @inheritdoc Command

lib/ComponentManager/Command/MoodleCommand.php 1 location

@@ 40-53 (lines=14) @@
37
    /**
38
     * @inheritdoc Command
39
     */
40
    protected function configure() {
41
        $this
42
            ->setName('moodle')
43
            ->setDescription('Queries properties of a Moodle installation')
44
            ->setHelp(static::HELP)
45
            ->setDefinition(new InputDefinition([
46
                new InputArgument(Argument::ARGUMENT_ACTION,
47
                                  InputArgument::REQUIRED,
48
                                  Argument::ARGUMENT_ACTION_HELP),
49
                new InputOption(Argument::ARGUMENT_MOODLE_DIR, null,
50
                                InputOption::VALUE_REQUIRED,
51
                                Argument::ARGUMENT_MOODLE_DIR_HELP),
52
            ]));
53
    }
54
55
    /**
56
     * @inheritdoc Command