Merge pull request #12 from ejosvp/master

show correct message when 0 keys are available
This commit is contained in:
Antoine Hérault 2012-01-01 04:51:00 -08:00
commit b414f4f142

View File

@ -61,14 +61,14 @@ EOT
$count = count($keys);
$output->writeln(
sprintf(
$message = $count ? sprintf(
'Bellow %s the <info>%s key%s</info> that where found:',
$count > 1 ? 'are' : 'is',
$count,
$count > 1 ? 's': ''
)
);
) : "<info>0 keys</info> were found.";
$output->writeln($message);
$output->setDecorated(true);
foreach ($keys as $key) {