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