mirror of
https://github.com/getgrav/grav.git
synced 2026-02-08 23:57:39 +01:00
minor cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user