Code Duplication    Length = 11-11 lines in 2 locations

Command/ExtractCommand.php 1 location

@@ 31-41 (lines=11) @@
28
{
29
    use BundleTrait;
30
31
    protected function configure()
32
    {
33
        $this
34
            ->setName('translation:extract')
35
            ->setDescription('Extract translations from source code.')
36
            ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
37
            ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false)
38
            ->addOption('hide-errors', null, InputOption::VALUE_NONE, 'If we should print error or not')
39
            ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want extract translations from.')
40
        ;
41
    }
42
43
    protected function execute(InputInterface $input, OutputInterface $output)
44
    {

Command/StatusCommand.php 1 location

@@ 28-38 (lines=11) @@
25
{
26
    use BundleTrait;
27
28
    protected function configure()
29
    {
30
        $this
31
            ->setName('translation:status')
32
            ->setDescription('Show status about your translations.')
33
            ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
34
            ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false)
35
            ->addOption('json', null, InputOption::VALUE_NONE, 'If we should output in Json format')
36
            ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The translations for bundle you want to check.')
37
        ;
38
    }
39
40
    protected function execute(InputInterface $input, OutputInterface $output)
41
    {