Code Duplication    Length = 10-10 lines in 2 locations

src/ElasticsearchExtraBundle/Command/DeleteIndexCommand.php 1 location

@@ 17-26 (lines=10) @@
14
 */
15
class DeleteIndexCommand extends ElasticsearchAwareCommand
16
{
17
    protected function configure()
18
    {
19
        $this
20
            ->setName('elasticsearch:index:delete')
21
            ->setDescription('delete index from configuration')
22
            ->addArgument('index', InputArgument::REQUIRED, 'Which index ?')
23
            ->addOption('force', null, InputOption::VALUE_NONE, 'Set this parameter to execute this action')
24
            ->addOption('client', null, InputOption::VALUE_REQUIRED, 'Client to use (if not default)', 'default')
25
        ;
26
    }
27
28
    protected function execute(InputInterface $input, OutputInterface $output)
29
    {

src/ElasticsearchExtraBundle/Command/PutIndexMappingsCommand.php 1 location

@@ 17-26 (lines=10) @@
14
 */
15
class PutIndexMappingsCommand extends ElasticsearchAwareCommand
16
{
17
    protected function configure()
18
    {
19
        $this
20
            ->setName('elasticsearch:index:put_mappings')
21
            ->setDescription('Put index mappings from configuration')
22
            ->addArgument('index', InputArgument::REQUIRED, 'Which index ?')
23
            ->addArgument('type', InputArgument::REQUIRED, 'Which type ?')
24
            ->addOption('client', null, InputOption::VALUE_REQUIRED, 'Client to use (if not default)', 'default')
25
        ;
26
    }
27
28
    protected function execute(InputInterface $input, OutputInterface $output)
29
    {