Code Duplication    Length = 7-7 lines in 2 locations

src/Common/ExecTrait.php 2 locations

@@ 290-296 (lines=7) @@
287
            $this->process->setEnv($this->env);
288
        }
289
290
        if (!$this->background and !$this->isPrinted) {
291
            $this->startTimer();
292
            $this->process->run();
293
            $this->stopTimer();
294
            return new Result($this, $this->process->getExitCode(),
295
                $this->process->getOutput(), $this->getResultData());
296
        }
297
298
        if (!$this->background and $this->isPrinted) {
299
            $this->startTimer();
@@ 298-304 (lines=7) @@
295
                $this->process->getOutput(), $this->getResultData());
296
        }
297
298
        if (!$this->background and $this->isPrinted) {
299
            $this->startTimer();
300
            $this->process->run($output_callback);
301
            $this->stopTimer();
302
            return new Result($this, $this->process->getExitCode(),
303
                $this->process->getOutput(), $this->getResultData());
304
        }
305
306
        try {
307
            $this->process->start();