Code Duplication    Length = 11-12 lines in 2 locations

lib/Console/Command/ConfigurationGet.php 1 location

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

lib/Console/Command/ConfigurationSet.php 1 location

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