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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user