summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-05-31 20:30:27 +0000
committerMarcus Boerger <helly@php.net>2008-05-31 20:30:27 +0000
commit4c2e05a6e7b3123bfd05a26fe8126817f29cb3e8 (patch)
tree6e391d712082acda20c023ee362ffd5a475a5bdf
parent28dd1f5f5ed64ba1df57f592d9d2d8e9875f2341 (diff)
downloadphp-git-4c2e05a6e7b3123bfd05a26fe8126817f29cb3e8.tar.gz
- MFH Simplify
-rwxr-xr-xext/phar/phar/clicommand.inc6
1 files changed, 1 insertions, 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";
}
}