| @@ 301-310 (lines=10) @@ | ||
| 298 | $this->process->setEnv($this->env); |
|
| 299 | } |
|
| 300 | ||
| 301 | if (!$this->background && !$this->isPrinted) { |
|
| 302 | $this->startTimer(); |
|
| 303 | $this->process->run(); |
|
| 304 | $this->stopTimer(); |
|
| 305 | return new ResultData( |
|
| 306 | $this->process->getExitCode(), |
|
| 307 | $this->process->getOutput(), |
|
| 308 | $this->getResultData() |
|
| 309 | ); |
|
| 310 | } |
|
| 311 | ||
| 312 | if (!$this->background && $this->isPrinted) { |
|
| 313 | $this->startTimer(); |
|
| @@ 312-321 (lines=10) @@ | ||
| 309 | ); |
|
| 310 | } |
|
| 311 | ||
| 312 | if (!$this->background && $this->isPrinted) { |
|
| 313 | $this->startTimer(); |
|
| 314 | $this->process->run($output_callback); |
|
| 315 | $this->stopTimer(); |
|
| 316 | return new ResultData( |
|
| 317 | $this->process->getExitCode(), |
|
| 318 | $this->process->getOutput(), |
|
| 319 | $this->getResultData() |
|
| 320 | ); |
|
| 321 | } |
|
| 322 | ||
| 323 | try { |
|
| 324 | $this->process->start(); |
|