minor cleanup

This commit is contained in:
Andy Miller 2016-08-31 09:58:24 -06:00
parent eb27e3e711
commit 36882e09dd

View File

@ -113,12 +113,13 @@ class IndexCommand extends ConsoleCommand
foreach ($data as $type => $packages) {
$this->output->writeln("<green>" . strtoupper($type) . "</green> [ " . count($packages) . " ]");
$table = [];
$index = 0;
$packages = $this->sort($packages);
if (!empty($packages)) {
$table = [];
$index = 0;
foreach ($packages as $slug => $package) {
$row = [
'Count' => $index++ + 1,