Code Duplication    Length = 9-10 lines in 2 locations

src/Cli/Command/RestoreCommand.php 1 location

@@ 13-21 (lines=9) @@
10
11
class RestoreCommand extends AbstractCommand
12
{
13
    protected function configure()
14
    {
15
        parent::configure();
16
17
        $this->setName('restore');
18
        $this->setDescription('Restores the local state from the vault state.');
19
        $this->addOption('revision', 'r', InputOption::VALUE_REQUIRED, 'Restore given revision. Defaults to last revision.');
20
        $this->addOption('vault', null, InputOption::VALUE_REQUIRED, 'Vault to use to download state from.');
21
    }
22
23
    protected function executeConfigured(InputInterface $input, OutputInterface $output, Storeman $storeman): int
24
    {

src/Cli/Command/DumpCommand.php 1 location

@@ 14-23 (lines=10) @@
11
12
class DumpCommand extends AbstractCommand
13
{
14
    protected function configure()
15
    {
16
        parent::configure();
17
18
        $this->setName('dump');
19
        $this->setDescription('Dump the contents of a vault.');
20
        $this->addArgument('path', InputArgument::REQUIRED, 'Target path.');
21
        $this->addOption('revision', 'r', InputOption::VALUE_REQUIRED, 'Restore given revision. Defaults to last revision.');
22
        $this->addOption('vault', null, InputOption::VALUE_REQUIRED, 'Vault to use to download state from.');
23
    }
24
25
    protected function executeConfigured(InputInterface $input, OutputInterface $output, Storeman $storeman): int
26
    {