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 |
||
10 | public function handle() |
||
11 | { |
||
12 | // No architecture, but full list of packages requested --> show simple list |
||
13 | $output = new HtmlOutput($this->config); |
||
14 | |||
15 | $pkgs = new PackageFinder($this->config->paths['packages']); |
||
16 | $packagesList = $pkgs->getAllPackageFiles(); |
||
17 | |||
18 | // Prepare data for template |
||
19 | $packages = array(); |
||
20 | foreach ($packagesList as $spkFile) { |
||
21 | $packages[] = array( |
||
22 | 'url' => $this->config->baseUrl . $spkFile, |
||
23 | 'filename' => basename($spkFile), |
||
24 | ); |
||
25 | } |
||
26 | $output->setVariable('packagelist', $packages); |
||
27 | $output->setTemplate('html_packagelist_all'); |
||
28 | $output->output(); |
||
29 | } |
||
30 | } |
||
31 |