From: Marcus Boerger Date: Sat, 31 May 2008 20:30:27 +0000 (+0000) Subject: - MFH Simplify X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c2e05a6e7b3123bfd05a26fe8126817f29cb3e8;p=php - MFH Simplify --- 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"; } }