| @@ 280-289 (lines=10) @@ | ||
| 277 | $this->process->setEnv($this->env); |
|
| 278 | } |
|
| 279 | ||
| 280 | if (!$this->background and !$this->isPrinted) { |
|
| 281 | $this->startTimer(); |
|
| 282 | $this->process->run(); |
|
| 283 | $this->stopTimer(); |
|
| 284 | return new ResultData( |
|
| 285 | $this->process->getExitCode(), |
|
| 286 | $this->process->getOutput(), |
|
| 287 | $this->getResultData() |
|
| 288 | ); |
|
| 289 | } |
|
| 290 | ||
| 291 | if (!$this->background and $this->isPrinted) { |
|
| 292 | $this->startTimer(); |
|
| @@ 291-300 (lines=10) @@ | ||
| 288 | ); |
|
| 289 | } |
|
| 290 | ||
| 291 | if (!$this->background and $this->isPrinted) { |
|
| 292 | $this->startTimer(); |
|
| 293 | $this->process->run($output_callback); |
|
| 294 | $this->stopTimer(); |
|
| 295 | return new ResultData( |
|
| 296 | $this->process->getExitCode(), |
|
| 297 | $this->process->getOutput(), |
|
| 298 | $this->getResultData() |
|
| 299 | ); |
|
| 300 | } |
|
| 301 | ||
| 302 | try { |
|
| 303 | $this->process->start(); |
|