From 4c2e05a6e7b3123bfd05a26fe8126817f29cb3e8 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 31 May 2008 20:30:27 +0000 Subject: [PATCH] - MFH Simplify --- ext/phar/phar/clicommand.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/phar/phar/clicommand.inc b/ext/phar/phar/clicommand.inc index ed09a8d5b7..e08e5c3bc6 100755 --- a/ext/phar/phar/clicommand.inc +++ b/ext/phar/phar/clicommand.inc @@ -370,11 +370,7 @@ abstract class CLICommand function cli_cmd_run_help_list() { ksort($this->cmds); - $lst = ''; - foreach($this->cmds as $name => $funcs) { - $lst .= $name . ' '; - } - echo substr($lst, 0, -1) . "\n"; + echo join(' ', array_keys($this->cmds)) . "\n"; } } -- 2.50.1