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) {