| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 25 | { |
||
| 26 | $file = realpath($input->getArgument('archive')); |
||
|
|
|||
| 27 | $archive = $this->getArchive($input, $output); |
||
| 28 | |||
| 29 | $output->writeln('Filename: ' . $file . ' (changed <comment>' . $this->formatDate(filemtime($file)) . '</comment>)'); |
||
| 30 | $output->writeln('Type: <info>' . $archive->getFormat() . '</info>, mime <info>' . $archive->getMimeType() . '</info> (via driver <comment>' . $archive->getDriverType() . '</comment>)'); |
||
| 31 | $output->writeln('Contains: ' . $archive->countFiles() . ' file' . ($archive->countFiles() > 1 ? 's' : null)); |
||
| 32 | $output->writeln('Size:'); |
||
| 33 | $output->writeln("\t". 'uncompressed: '.implode(' ', $this->formatSize($archive->getOriginalSize(), 2))); |
||
| 34 | $output->writeln("\t" . 'compressed: ' . implode(' ', $this->formatSize($archive->getCompressedSize(), 2))); |
||
| 35 | $output->writeln("\t" . 'ratio: <info>' . round($archive->getOriginalSize() / $archive->getCompressedSize(), 6) . '/1 (' . floor($archive->getCompressedSize() / $archive->getOriginalSize() * 100) . '%</info>)'); |
||
| 36 | if (!empty($comment = $archive->getComment())) |
||
| 37 | $output->writeln('Comment: <comment>' . $comment . '</comment>'); |
||
| 38 | } |
||
| 40 |