Code Duplication    Length = 12-12 lines in 2 locations

src/Transport/DockerComposeTransport.php 1 location

@@ 41-52 (lines=12) @@
38
    /**
39
     * inheritdoc
40
     */
41
    public function wrap($args)
42
    {
43
        $transport = ['docker-compose', 'exec'];
44
        $transportOptions = $this->getTransportOptions();
45
        $commandToExecute = $this->getCommandToExecute($args);
46
47
        return array_merge(
48
            $transport,
49
            $transportOptions,
50
            $commandToExecute
51
        );
52
    }
53
54
    /**
55
     * @inheritdoc

src/Transport/SshTransport.php 1 location

@@ 41-52 (lines=12) @@
38
    /**
39
     * inheritdoc
40
     */
41
    public function wrap($args)
42
    {
43
        $transport = ['ssh'];
44
        $transportOptions = $this->getTransportOptions();
45
        $commandToExecute = $this->getCommandToExecute($args);
46
47
        return array_merge(
48
            $transport,
49
            $transportOptions,
50
            $commandToExecute
51
        );
52
    }
53
54
    /**
55
     * @inheritdoc