| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function command($command, $bypassErrors = false, $listeners = null) |
||
| 22 | { |
||
| 23 | if (!is_array($command)) { |
||
| 24 | $command = [$command]; |
||
| 25 | } |
||
| 26 | |||
| 27 | $process = $this->factory->create($command); |
||
| 28 | |||
| 29 | if ($this->pendingWorkingDirectory) { |
||
| 30 | $process->setWorkingDirectory($this->pendingWorkingDirectory); |
||
| 31 | $this->pendingWorkingDirectory = null; |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->run($process, $bypassErrors, $listeners); |
||
| 35 | } |
||
| 37 |