Code Duplication    Length = 7-10 lines in 2 locations

src/Common/ExecTrait.php 1 location

@@ 315-324 (lines=10) @@
312
    /**
313
     *
314
     */
315
    protected function stop()
316
    {
317
        if ($this->background && isset($this->process) && $this->process->isRunning()) {
318
            $this->process->stop();
319
            $this->printTaskInfo(
320
                "Stopped {command}",
321
                ['command' => $this->getCommand()]
322
            );
323
        }
324
    }
325
326
    /**
327
     * @param array $context

src/Task/Base/Exec.php 1 location

@@ 177-183 (lines=7) @@
174
        $this->stop();
175
    }
176
177
    protected function stop()
178
    {
179
        if ($this->background && $this->process->isRunning()) {
180
            $this->process->stop();
181
            $this->printTaskInfo("Stopped {command}", ['command' => $this->getCommand()]);
182
        }
183
    }
184
185
    /**
186
     * @param array $context