Code Duplication    Length = 7-7 lines in 2 locations

src/Config.php 2 locations

@@ 630-636 (lines=7) @@
627
            $this->overriddenDefaults['cache'] = true;
628
            break;
629
        case 'config-set':
630
            if (isset($this->cliArgs[($pos + 1)]) === false
631
                || isset($this->cliArgs[($pos + 2)]) === false
632
            ) {
633
                echo 'ERROR: Setting a config option requires a name and value'.PHP_EOL.PHP_EOL;
634
                $this->printUsage();
635
                exit(0);
636
            }
637
638
            $key     = $this->cliArgs[($pos + 1)];
639
            $value   = $this->cliArgs[($pos + 2)];
@@ 682-688 (lines=7) @@
679
            $this->printConfigData($data);
680
            exit(0);
681
        case 'runtime-set':
682
            if (isset($this->cliArgs[($pos + 1)]) === false
683
                || isset($this->cliArgs[($pos + 2)]) === false
684
            ) {
685
                echo 'ERROR: Setting a runtime config option requires a name and value'.PHP_EOL.PHP_EOL;
686
                $this->printUsage();
687
                exit(0);
688
            }
689
690
            $key   = $this->cliArgs[($pos + 1)];
691
            $value = $this->cliArgs[($pos + 2)];