From: Tomas V.V.Cox Date: Sat, 23 Mar 2002 17:55:51 +0000 (+0000) Subject: Show maintainers name in package-info and show more human friendly X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1084 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=757ec9ef38ebad864d03971ff389c4d0a42f506f;p=php Show maintainers name in package-info and show more human friendly column table names --- diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 167a2ef734..d61c72091c 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -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();