mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
minor cleanup
This commit is contained in:
parent
eb27e3e711
commit
36882e09dd
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user