Code Duplication    Length = 10-10 lines in 2 locations

src/Common/ExecTrait.php 2 locations

@@ 282-291 (lines=10) @@
279
            $this->process->setEnv($this->env);
280
        }
281
282
        if (!$this->background and !$this->isPrinted) {
283
            $this->startTimer();
284
            $this->process->run();
285
            $this->stopTimer();
286
            return new ResultData(
287
                $this->process->getExitCode(),
288
                $this->process->getOutput(),
289
                $this->getResultData()
290
            );
291
        }
292
293
        if (!$this->background and $this->isPrinted) {
294
            $this->startTimer();
@@ 293-302 (lines=10) @@
290
            );
291
        }
292
293
        if (!$this->background and $this->isPrinted) {
294
            $this->startTimer();
295
            $this->process->run($output_callback);
296
            $this->stopTimer();
297
            return new ResultData(
298
                $this->process->getExitCode(),
299
                $this->process->getOutput(),
300
                $this->getResultData()
301
            );
302
        }
303
304
        try {
305
            $this->process->start();