Code Duplication    Length = 11-11 lines in 2 locations

Command/ExtractCommand.php 1 location

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

Command/StatusCommand.php 1 location

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