Code Duplication    Length = 13-15 lines in 2 locations

src/Command/CreateCommand.php 1 location

@@ 35-47 (lines=13) @@
32
    private $configManager;
33
    private $aliasProcessor;
34
35
    public function __construct(
36
        IndexManager $indexManager,
37
        MappingBuilder $mappingBuilder,
38
        ConfigManager $configManager,
39
        AliasProcessor $aliasProcessor
40
    ) {
41
        parent::__construct();
42
43
        $this->indexManager = $indexManager;
44
        $this->mappingBuilder = $mappingBuilder;
45
        $this->configManager = $configManager;
46
        $this->aliasProcessor = $aliasProcessor;
47
    }
48
49
    protected function configure()
50
    {

src/Command/DeleteCommand.php 1 location

@@ 42-56 (lines=15) @@
39
     */
40
    private $client;
41
42
    public function __construct(
43
        Client $client,
44
        IndexManager $indexManager,
45
        MappingBuilder $mappingBuilder,
46
        ConfigManager $configManager,
47
        AliasProcessor $aliasProcessor
48
    ) {
49
        parent::__construct();
50
51
        $this->client = $client;
52
        $this->indexManager = $indexManager;
53
        $this->mappingBuilder = $mappingBuilder;
54
        $this->configManager = $configManager;
55
        $this->aliasProcessor = $aliasProcessor;
56
    }
57
58
    protected function configure()
59
    {