diff options
| author | Marcus Boerger <helly@php.net> | 2008-05-31 20:30:27 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2008-05-31 20:30:27 +0000 |
| commit | 4c2e05a6e7b3123bfd05a26fe8126817f29cb3e8 (patch) | |
| tree | 6e391d712082acda20c023ee362ffd5a475a5bdf | |
| parent | 28dd1f5f5ed64ba1df57f592d9d2d8e9875f2341 (diff) | |
| download | php-git-4c2e05a6e7b3123bfd05a26fe8126817f29cb3e8.tar.gz | |
- MFH Simplify
| -rwxr-xr-x | ext/phar/phar/clicommand.inc | 6 |
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"; } } |
