Code Duplication    Length = 8-9 lines in 2 locations

lib/Cli/Command/SetElementValue.php 1 location

@@ 25-33 (lines=9) @@
22
        $this->path = $path;
23
    }
24
25
    protected function configure()
26
    {
27
        $this->setName('element:set');
28
        $this->setDescription('Modifies a property value for a configurable element');
29
        $this->addArgument('class', InputArgument::REQUIRED, 'Need the full name of the class, including namespace');
30
        $this->addArgument('property', InputArgument::REQUIRED, 'The name of the propery to set (this is not validated and is case sensitive)');
31
        $this->addArgument('value', InputArgument::REQUIRED, 'Need the value of the setting');
32
        $this->addOption('json', null, InputOption::VALUE_NONE, 'If set, this will filter the value through json_decode().');
33
    }
34
35
    protected function execute(InputInterface $input, OutputInterface $output)
36
    {

lib/Cli/Command/SetSetting.php 1 location

@@ 25-32 (lines=8) @@
22
        $this->path = $path;
23
    }
24
25
    protected function configure()
26
    {
27
        $this->setName('config:set');
28
        $this->setDescription('Modifies a setting');
29
        $this->addArgument('name', InputArgument::REQUIRED, 'The name of the setting');
30
        $this->addArgument('value', InputArgument::REQUIRED, 'The value of the setting');
31
        $this->addOption('json', null, InputOption::VALUE_NONE, 'If set, this will filter the value through json_decode().');
32
    }
33
34
    protected function execute(InputInterface $input, OutputInterface $output)
35
    {