Move $io->write calls together
parent
77e104bd4d
commit
308fa88746
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue