Code Duplication    Length = 11-11 lines in 2 locations

Command/ExtractCommand.php 1 location

@@ 79-89 (lines=11) @@
76
        parent::__construct();
77
    }
78
79
    protected function configure(): void
80
    {
81
        $this
82
            ->setName(self::$defaultName)
83
            ->setDescription('Extract translations from source code.')
84
            ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
85
            ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false)
86
            ->addOption('hide-errors', null, InputOption::VALUE_NONE, 'If we should print error or not')
87
            ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want extract translations from.')
88
        ;
89
    }
90
91
    protected function execute(InputInterface $input, OutputInterface $output): int
92
    {

Command/StatusCommand.php 1 location

@@ 60-70 (lines=11) @@
57
        parent::__construct();
58
    }
59
60
    protected function configure(): void
61
    {
62
        $this
63
            ->setName(self::$defaultName)
64
            ->setDescription('Show status about your translations.')
65
            ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
66
            ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false)
67
            ->addOption('json', null, InputOption::VALUE_NONE, 'If we should output in Json format')
68
            ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle for which you want to check the translations.')
69
        ;
70
    }
71
72
    protected function execute(InputInterface $input, OutputInterface $output): int
73
    {