Code Duplication    Length = 21-21 lines in 2 locations

Command/TypeDropCommand.php 1 location

@@ 26-46 (lines=21) @@
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function configure()
27
    {
28
        parent::configure();
29
30
        $this
31
            ->setName('ongr:es:type:drop')
32
            ->setDescription('Updates elasticsearch index mappings.')
33
            ->addOption(
34
                'type',
35
                't',
36
                InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
37
                'Specific types to drop.',
38
                []
39
            )
40
            ->addOption(
41
                'force',
42
                'f',
43
                InputOption::VALUE_NONE,
44
                'Set this parameter to execute this command'
45
            );
46
    }
47
48
    /**
49
     * {@inheritdoc}

Command/TypeUpdateCommand.php 1 location

@@ 26-46 (lines=21) @@
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function configure()
27
    {
28
        parent::configure();
29
30
        $this
31
            ->setName('ongr:es:type:update')
32
            ->setDescription('Updates elasticsearch index mappings.')
33
            ->addOption(
34
                'force',
35
                'f',
36
                InputOption::VALUE_NONE,
37
                'Set this parameter to execute this command'
38
            )
39
            ->addOption(
40
                'type',
41
                't',
42
                InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
43
                'Set this parameter to update only a specific types',
44
                []
45
            );
46
    }
47
48
    /**
49
     * {@inheritdoc}