Code Duplication    Length = 7-7 lines in 2 locations

src/Project/DockerComposeProjectManager.php 2 locations

@@ 86-92 (lines=7) @@
83
    {
84
        $composePath = $this->composeExecutableFinder->find();
85
86
        $this->processRunner->run(implode(' && ', array_map(function ($action) use ($composePath, $containers) {
87
            return implode(' ', [
88
                $composePath,
89
                $action,
90
                implode(' ', $containers),
91
            ]);
92
        }, ['kill', 'rm -f', 'up -d'])));
93
    }
94
95
    /**
@@ 102-108 (lines=7) @@
99
    {
100
        $composePath = $this->composeExecutableFinder->find();
101
102
        $this->processRunner->run(implode(' && ', array_map(function ($action) use ($composePath, $containers) {
103
            return implode(' ', [
104
                $composePath,
105
                $action,
106
                implode(' ', $containers),
107
            ]);
108
        }, ['build'])));
109
110
        $this->reset($project, $containers);
111
    }