Merge pull request #12 from ejosvp/master
show correct message when 0 keys are available
This commit is contained in:
commit
b414f4f142
|
@ -61,14 +61,14 @@ EOT
|
||||||
|
|
||||||
$count = count($keys);
|
$count = count($keys);
|
||||||
|
|
||||||
$output->writeln(
|
$message = $count ? sprintf(
|
||||||
sprintf(
|
|
||||||
'Bellow %s the <info>%s key%s</info> that where found:',
|
'Bellow %s the <info>%s key%s</info> that where found:',
|
||||||
$count > 1 ? 'are' : 'is',
|
$count > 1 ? 'are' : 'is',
|
||||||
$count,
|
$count,
|
||||||
$count > 1 ? 's': ''
|
$count > 1 ? 's': ''
|
||||||
)
|
) : "<info>0 keys</info> were found.";
|
||||||
);
|
|
||||||
|
$output->writeln($message);
|
||||||
|
|
||||||
$output->setDecorated(true);
|
$output->setDecorated(true);
|
||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user