@@ 322-332 (lines=11) @@ | ||
319 | $this->process->setEnv($this->env); |
|
320 | } |
|
321 | ||
322 | if (!$this->background && !$this->isPrinted) { |
|
323 | $this->startTimer(); |
|
324 | $this->process->run(); |
|
325 | $this->stopTimer(); |
|
326 | $output = rtrim($this->process->getOutput()); |
|
327 | return new ResultData( |
|
328 | $this->process->getExitCode(), |
|
329 | $output, |
|
330 | $this->getResultData() |
|
331 | ); |
|
332 | } |
|
333 | ||
334 | if (!$this->background && $this->isPrinted) { |
|
335 | $this->startTimer(); |
|
@@ 334-343 (lines=10) @@ | ||
331 | ); |
|
332 | } |
|
333 | ||
334 | if (!$this->background && $this->isPrinted) { |
|
335 | $this->startTimer(); |
|
336 | $this->process->run($output_callback); |
|
337 | $this->stopTimer(); |
|
338 | return new ResultData( |
|
339 | $this->process->getExitCode(), |
|
340 | $this->process->getOutput(), |
|
341 | $this->getResultData() |
|
342 | ); |
|
343 | } |
|
344 | ||
345 | try { |
|
346 | $this->process->start(); |