From f9184029004bd3ee71993b88dac5e395ac5f3305 Mon Sep 17 00:00:00 2001 From: Ernesto Jose Vargas Paz Date: Sat, 31 Dec 2011 13:00:38 -0500 Subject: [PATCH] show correct message when 0 keys are available --- Command/FilesystemKeysCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Command/FilesystemKeysCommand.php b/Command/FilesystemKeysCommand.php index 84b10cc..00e797c 100644 --- a/Command/FilesystemKeysCommand.php +++ b/Command/FilesystemKeysCommand.php @@ -61,14 +61,14 @@ EOT $count = count($keys); - $output->writeln( - sprintf( + $message = $count ? sprintf( 'Bellow %s the %s key%s that where found:', $count > 1 ? 'are' : 'is', $count, $count > 1 ? 's': '' - ) - ); + ) : "0 keys were found."; + + $output->writeln($message); $output->setDecorated(true); foreach ($keys as $key) {