| @@ 299-305 (lines=7) @@ | ||
| 296 | $this->process->setEnv($this->env); |
|
| 297 | } |
|
| 298 | ||
| 299 | if (!$this->background and !$this->isPrinted) { |
|
| 300 | $this->startTimer(); |
|
| 301 | $this->process->run(); |
|
| 302 | $this->stopTimer(); |
|
| 303 | return new Result( |
|
| 304 | $this, |
|
| 305 | $this->process->getExitCode(), |
|
| 306 | $this->process->getOutput(), |
|
| 307 | $this->getResultData() |
|
| 308 | ); |
|
| @@ 311-317 (lines=7) @@ | ||
| 308 | ); |
|
| 309 | } |
|
| 310 | ||
| 311 | if (!$this->background and $this->isPrinted) { |
|
| 312 | $this->startTimer(); |
|
| 313 | $this->process->run($output_callback); |
|
| 314 | $this->stopTimer(); |
|
| 315 | return new Result( |
|
| 316 | $this, |
|
| 317 | $this->process->getExitCode(), |
|
| 318 | $this->process->getOutput(), |
|
| 319 | $this->getResultData() |
|
| 320 | ); |
|