| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function outputBinaryStatus(OutputInterface $output, $binary) |
||
| 40 | { |
||
| 41 | $directory = $this->manager->getInstallPath(); |
||
| 42 | $tag = "comment"; |
||
| 43 | if ($binary->exists($directory)) { |
||
| 44 | $message = "{$binary->getName()} is up to date"; |
||
| 45 | $tag = "info"; |
||
| 46 | } else if ($binary->isOutOfDate($directory)) { |
||
| 47 | $message = "{$binary->getName()} needs to be updated"; |
||
| 48 | } else { |
||
| 49 | $message = "{$binary->getName()} is not present"; |
||
| 50 | } |
||
| 51 | $output->writeln("<$tag>$message</$tag>"); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |