1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00

Show maintainers name in package-info and show more human friendly

column table names
This commit is contained in:
Tomas V.V.Cox
2002-03-23 17:55:51 +00:00
parent 4df6833a79
commit 757ec9ef38

View 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();