| @@ 367-377 (lines=11) @@ | ||
| 364 | $this->process->setEnv($this->env); |
|
| 365 | } |
|
| 366 | ||
| 367 | if (!$this->background && !$this->isPrinted) { |
|
| 368 | $this->startTimer(); |
|
| 369 | $this->process->run(); |
|
| 370 | $this->stopTimer(); |
|
| 371 | $output = rtrim($this->process->getOutput()); |
|
| 372 | return new ResultData( |
|
| 373 | $this->process->getExitCode(), |
|
| 374 | $output, |
|
| 375 | $this->getResultData() |
|
| 376 | ); |
|
| 377 | } |
|
| 378 | ||
| 379 | if (!$this->background && $this->isPrinted) { |
|
| 380 | $this->startTimer(); |
|
| @@ 379-388 (lines=10) @@ | ||
| 376 | ); |
|
| 377 | } |
|
| 378 | ||
| 379 | if (!$this->background && $this->isPrinted) { |
|
| 380 | $this->startTimer(); |
|
| 381 | $this->process->run($output_callback); |
|
| 382 | $this->stopTimer(); |
|
| 383 | return new ResultData( |
|
| 384 | $this->process->getExitCode(), |
|
| 385 | $this->process->getOutput(), |
|
| 386 | $this->getResultData() |
|
| 387 | ); |
|
| 388 | } |
|
| 389 | ||
| 390 | try { |
|
| 391 | $this->process->start(); |
|