1
0
Fork 0

Fix outdated command outputting some of the legend to stdout

pull/11150/head
Jordi Boggiano 2022-10-25 14:43:53 +02:00
parent 86db6ffdae
commit 8d3a304233
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 6 deletions

View File

@ -600,19 +600,19 @@ EOT
}
}
$io->write('');
$io->write('<info>Direct dependencies required in composer.json:</>');
$io->writeError('');
$io->writeError('<info>Direct dependencies required in composer.json:</>');
if (\count($directDeps) > 0) {
$this->printPackages($io, $directDeps, $indent, $versionFits, $latestFits, $descriptionFits, $width, $versionLength, $nameLength, $latestLength);
} else {
$io->write('Everything up to date');
$io->writeError('Everything up to date');
}
$io->write('');
$io->write('<info>Transitive dependencies not required in composer.json:</>');
$io->writeError('');
$io->writeError('<info>Transitive dependencies not required in composer.json:</>');
if (\count($transitiveDeps) > 0) {
$this->printPackages($io, $transitiveDeps, $indent, $versionFits, $latestFits, $descriptionFits, $width, $versionLength, $nameLength, $latestLength);
} else {
$io->write('Everything up to date');
$io->writeError('Everything up to date');
}
} else {
$this->printPackages($io, $packages, $indent, $versionFits, $latestFits, $descriptionFits, $width, $versionLength, $nameLength, $latestLength);