| @@ 272-281 (lines=10) @@ | ||
| 269 | $this->process->setEnv($this->env); |
|
| 270 | } |
|
| 271 | ||
| 272 | if (!$this->background and !$this->isPrinted) { |
|
| 273 | $this->startTimer(); |
|
| 274 | $this->process->run(); |
|
| 275 | $this->stopTimer(); |
|
| 276 | return new ResultData( |
|
| 277 | $this->process->getExitCode(), |
|
| 278 | $this->process->getOutput(), |
|
| 279 | $this->getResultData() |
|
| 280 | ); |
|
| 281 | } |
|
| 282 | ||
| 283 | if (!$this->background and $this->isPrinted) { |
|
| 284 | $this->startTimer(); |
|
| @@ 283-292 (lines=10) @@ | ||
| 280 | ); |
|
| 281 | } |
|
| 282 | ||
| 283 | if (!$this->background and $this->isPrinted) { |
|
| 284 | $this->startTimer(); |
|
| 285 | $this->process->run($output_callback); |
|
| 286 | $this->stopTimer(); |
|
| 287 | return new ResultData( |
|
| 288 | $this->process->getExitCode(), |
|
| 289 | $this->process->getOutput(), |
|
| 290 | $this->getResultData() |
|
| 291 | ); |
|
| 292 | } |
|
| 293 | ||
| 294 | try { |
|
| 295 | $this->process->start(); |
|