@@ -67,8 +67,10 @@ EOT
$this->output = $output;
$repos->filterPackages(array($this, 'processPackage'), 'Composer\Package\CompletePackage');
- foreach ($this->lowMatches as $details) {
+ if (!empty($this->lowMatches)) {
- $output->writeln($details['name'] . '<comment>:</comment> '. $details['description']);
+ foreach ($this->lowMatches as $details) {
+ $output->writeln($details['name'] . '<comment>:</comment> '. $details['description']);
+ }
}