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