mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
* disable table borders in output to save width
This commit is contained in:
parent
360d1da529
commit
7d4142b896
@ -254,7 +254,7 @@ class PEAR_Frontend_CLI extends PEAR
|
||||
|
||||
function endTable()
|
||||
{
|
||||
trigger_error("PEAR_Frontend_CLI::tableRow deprecated", E_USER_ERROR);
|
||||
trigger_error("PEAR_Frontend_CLI::endTable deprecated", E_USER_ERROR);
|
||||
}
|
||||
|
||||
function _endTable()
|
||||
@ -275,6 +275,7 @@ class PEAR_Frontend_CLI extends PEAR
|
||||
}
|
||||
}
|
||||
}
|
||||
$border = false;
|
||||
if (empty($border)) {
|
||||
$cellstart = '';
|
||||
$cellend = ' ';
|
||||
@ -358,7 +359,7 @@ class PEAR_Frontend_CLI extends PEAR
|
||||
if (isset($data['release_warnings'])) {
|
||||
$this->_displayLine('');
|
||||
$this->_startTable(array(
|
||||
'border' => true,
|
||||
'border' => false,
|
||||
'caption' => 'Release Warnings'
|
||||
));
|
||||
$this->_tableRow(array($data['release_warnings']), null, array(1 => array('wrap' => 55)));
|
||||
@ -394,7 +395,7 @@ class PEAR_Frontend_CLI extends PEAR
|
||||
$this->_endTable();
|
||||
break;
|
||||
case 'config-show':
|
||||
$data['border'] = true;
|
||||
$data['border'] = false;
|
||||
$opts = array(0 => array('wrap' => 30),
|
||||
1 => array('wrap' => 20),
|
||||
2 => array('wrap' => 35));
|
||||
@ -417,7 +418,7 @@ class PEAR_Frontend_CLI extends PEAR
|
||||
case 'remote-info':
|
||||
$data = array(
|
||||
'caption' => 'Package details:',
|
||||
'border' => true,
|
||||
'border' => false,
|
||||
'data' => array(
|
||||
array("Latest", $data['stable']),
|
||||
array("Installed", $data['installed']),
|
||||
|
Loading…
Reference in New Issue
Block a user