Code Duplication    Length = 11-12 lines in 2 locations

lib/Console/Command/ConfigurationGet.php 1 location

@@ 22-32 (lines=11) @@
19
20
    const COMMAND = 'magium:configuration:get';
21
22
    protected function configure()
23
    {
24
        $this
25
            ->setName(self::COMMAND)
26
            ->setDescription('Get a configuration value')
27
            ->setHelp("This command retrieves a value for a specific configuration path")
28
        ;
29
        $this->addOption('use-flag', 'f', InputOption::VALUE_NONE, 'Get value as flag');
30
        $this->addArgument('path', InputArgument::REQUIRED, 'Configuration Path');
31
        $this->addArgument('context', InputArgument::OPTIONAL, 'Configuration Context', Config::CONTEXT_DEFAULT);
32
    }
33
34
    protected function getValueFlag(ConfigInterface $config, $path)
35
    {

lib/Console/Command/ConfigurationSet.php 1 location

@@ 21-32 (lines=12) @@
18
19
    const COMMAND = 'magium:configuration:set';
20
21
    protected function configure()
22
    {
23
        $this
24
            ->setName(self::COMMAND)
25
            ->setDescription('Set a configuration value')
26
            ->setHelp("This command sets a value for a specific configuration path")
27
        ;
28
29
        $this->addArgument('path', InputArgument::REQUIRED, 'Configuration Path');
30
        $this->addArgument('value', InputArgument::OPTIONAL, 'Value');
31
        $this->addArgument('context', InputArgument::OPTIONAL, 'Configuration Context', Config::CONTEXT_DEFAULT);
32
    }
33
34
35
    protected function execute(InputInterface $input, OutputInterface $output)