| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 33 | public function run() |
||
| 34 | { |
||
| 35 | if ($this->processRunner->run($this->getVersionCommand(), false)->isSuccessful()) { |
||
| 36 | $this->userInteraction->write(sprintf('"%s" is already installed', $this->getName())); |
||
| 37 | } else { |
||
| 38 | $this->userInteraction->write(sprintf('Installing "%s"', $this->getName())); |
||
| 39 | $this->processRunner->run($this->getInstallCommand()); |
||
| 40 | $this->userInteraction->write(sprintf('"%s" successfully installed', $this->getName())); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 54 |