| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function handle() |
||
| 16 | { |
||
| 17 | // No architecture, but full list of packages requested --> show simple list |
||
| 18 | $output = new HtmlOutput($this->config); |
||
| 19 | |||
| 20 | $pkgs = new PackageFinder($this->config); |
||
| 21 | $packagesList = $pkgs->getAllPackageFiles(); |
||
| 22 | |||
| 23 | // Prepare data for template |
||
| 24 | $packages = array(); |
||
| 25 | foreach ($packagesList as $spkFile) { |
||
| 26 | $packages[basename($spkFile)] = array( |
||
| 27 | 'url' => $this->config->baseUrl . $spkFile, |
||
| 28 | 'filename' => basename($spkFile), |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | ksort($packages, SORT_NATURAL | SORT_FLAG_CASE); |
||
| 32 | $output->setVariable('packagelist', array_values($packages)); |
||
| 33 | $output->setVariable('fullList', true); |
||
| 34 | $output->setTemplate('html_packagelist_all'); |
||
| 35 | $output->output(); |
||
| 36 | } |
||
| 38 |