Code Duplication    Length = 24-24 lines in 2 locations

lib/Console/Command/ConfigurationGet.php 1 location

@@ 11-34 (lines=24) @@
8
use Symfony\Component\Console\Input\InputInterface;
9
use Symfony\Component\Console\Output\OutputInterface;
10
11
class ConfigurationGet extends Command
12
{
13
14
    const COMMAND = 'magium:configuration:get';
15
16
    protected function configure()
17
    {
18
        $this
19
            ->setName(self::COMMAND)
20
            ->setDescription('Get a configuration value')
21
            ->setHelp("This command retrieves a value for a specific configuration path")
22
        ;
23
24
        $this->addArgument('path', InputArgument::REQUIRED, 'Configuration Path');
25
        $this->addArgument('context', InputArgument::OPTIONAL, 'Configuration Context', Config::CONTEXT_DEFAULT);
26
    }
27
28
    protected function execute(InputInterface $input, OutputInterface $output)
29
    {
30
31
    }
32
33
34
}
35

lib/Console/Command/ConfigurationList.php 1 location

@@ 12-35 (lines=24) @@
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
12
class ConfigurationList extends Command
13
{
14
15
    const COMMAND = 'magium:configuration:list';
16
17
    protected function configure()
18
    {
19
        $this
20
            ->setName(self::COMMAND)
21
            ->setDescription('List configuration settings')
22
            ->setHelp("This command lists all of the configuration setting values for the specified context, or 'default' if the context is not provided")
23
        ;
24
25
        $this->addArgument('path', InputArgument::REQUIRED, 'Configuration Path');
26
        $this->addArgument('context', InputArgument::OPTIONAL, 'Configuration Context', Config::CONTEXT_DEFAULT);
27
    }
28
29
    protected function execute(InputInterface $input, OutputInterface $output)
30
    {
31
        $factory = new MagiumConfigurationFactory();
32
        $factory->getBuilder();
33
    }
34
35
}
36