]> granicus.if.org Git - php/commitdiff
- MFH Simplify
authorMarcus Boerger <helly@php.net>
Sat, 31 May 2008 20:30:27 +0000 (20:30 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 31 May 2008 20:30:27 +0000 (20:30 +0000)
ext/phar/phar/clicommand.inc

index ed09a8d5b730e99fa019d6d4972131480e3d995f..e08e5c3bc677e4616c1faa800082da490ec4aa1b 100755 (executable)
@@ -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";
     }
 }