]> granicus.if.org Git - php/commitdiff
Show maintainers name in package-info and show more human friendly
authorTomas V.V.Cox <cox@php.net>
Sat, 23 Mar 2002 17:55:51 +0000 (17:55 +0000)
committerTomas V.V.Cox <cox@php.net>
Sat, 23 Mar 2002 17:55:51 +0000 (17:55 +0000)
column table names

pear/PEAR/Command/Package.php

index 167a2ef7343f5766af7f281cbc6e7898cb1335f8..d61c72091c322eb9862add42d7ff23e14561c935 100644 (file)
@@ -134,12 +134,13 @@ class PEAR_Command_Package extends PEAR_Command_Common
                                     if ($i++ > 0) {
                                         $mstr .= "\n";
                                     }
+                                    $mstr .= $m['name'] . " <";
                                     if (isset($m['email'])) {
                                         $mstr .= $m['email'];
                                     } else {
                                         $mstr .= $m['handle'] . '@php.net';
                                     }
-                                    $mstr .= " ($m[role])";
+                                    $mstr .= "> ($m[role])";
                                 }
                                 $info[$key] = $mstr;
                                 break;
@@ -185,6 +186,7 @@ class PEAR_Command_Package extends PEAR_Command_Common
                 $this->ui->startTable(array('caption' => $caption,
                                             'border' => true));
                 foreach ($info as $key => $value) {
+                    $key = ucwords(str_replace('_', ' ', $key));
                     $this->ui->tableRow(array($key, $value), null, array(1 => array('wrap' => 55)));
                 }
                 $this->ui->endTable();