Code Duplication    Length = 10-14 lines in 2 locations

Command/DeleteObsoleteCommand.php 1 location

@@ 64-73 (lines=10) @@
61
        parent::__construct();
62
    }
63
64
    protected function configure(): void
65
    {
66
        $this
67
            ->setName(self::$defaultName)
68
            ->setDescription('Delete all translations marked as obsolete.')
69
            ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
70
            ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', null)
71
            ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want remove translations from.')
72
        ;
73
    }
74
75
    protected function execute(InputInterface $input, OutputInterface $output): int
76
    {

Command/DownloadCommand.php 1 location

@@ 54-67 (lines=14) @@
51
        parent::__construct();
52
    }
53
54
    protected function configure(): void
55
    {
56
        $this
57
            ->setName(self::$defaultName)
58
            ->setDescription('Replace local messages with messages from remote')
59
            ->setHelp(<<<EOT
60
The <info>%command.name%</info> will erase all your local translations and replace them with translations downloaded from the remote.
61
EOT
62
            )
63
            ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
64
            ->addOption('cache', null, InputOption::VALUE_NONE, '[DEPRECATED] Cache is now automatically cleared when translations have changed.')
65
            ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want update translations from.')
66
        ;
67
    }
68
69
    protected function execute(InputInterface $input, OutputInterface $output): int
70
    {