1
0
Fork 0

Move $io->write calls together

pull/6228/head
Alexander Schwenn 2017-03-05 21:06:44 +01:00
parent 77e104bd4d
commit 308fa88746
1 changed files with 4 additions and 3 deletions

View File

@ -272,9 +272,6 @@ EOT
$latestPackages = array(); $latestPackages = array();
foreach (array('<info>platform</info>:' => true, '<comment>available</comment>:' => false, '<info>installed</info>:' => true) as $type => $showVersion) { foreach (array('<info>platform</info>:' => true, '<comment>available</comment>:' => false, '<info>installed</info>:' => true) as $type => $showVersion) {
if (isset($packages[$type])) { if (isset($packages[$type])) {
if ($showAllTypes) {
$io->write($type);
}
ksort($packages[$type]); ksort($packages[$type]);
$nameLength = $versionLength = $latestLength = 0; $nameLength = $versionLength = $latestLength = 0;
@ -321,6 +318,10 @@ EOT
$latestLength += 2; $latestLength += 2;
} }
$hasOutdatedPackages = false; $hasOutdatedPackages = false;
if ($showAllTypes) {
$io->write($type);
}
foreach ($packages[$type] as $package) { foreach ($packages[$type] as $package) {
if (is_object($package)) { if (is_object($package)) {
$latestPackage = null; $latestPackage = null;