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