summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-12-06 23:37:30 +0000
committerGreg Beaver <cellog@php.net>2003-12-06 23:37:30 +0000
commitcfb05861b92dc8ec064cbbe1323274752f3f515e (patch)
tree959cee2323b019ad80f8a1ce30baf61b69b4509e /pear
parent59b98030bc46cec8c28d9382f5cbc21360a1a08c (diff)
downloadphp-git-cfb05861b92dc8ec064cbbe1323274752f3f515e.tar.gz
CS
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR/Frontend/CLI.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php
index 941ff96535..c71fd2c90b 100644
--- a/pear/PEAR/Frontend/CLI.php
+++ b/pear/PEAR/Frontend/CLI.php
@@ -363,8 +363,7 @@ class PEAR_Frontend_CLI extends PEAR
function outputData($data, $command = '_default')
{
- switch ($command)
- {
+ switch ($command) {
case 'install':
case 'upgrade':
case 'upgrade-all':
@@ -377,13 +376,14 @@ class PEAR_Frontend_CLI extends PEAR
$this->_tableRow(array($data['release_warnings']), null, array(1 => array('wrap' => 55)));
$this->_endTable();
$this->_displayLine('');
- };
+ }
$this->_displayLine($data['data']);
break;
case 'search':
$this->_startTable($data);
- if (isset($data['headline']) && is_array($data['headline']))
+ if (isset($data['headline']) && is_array($data['headline'])) {
$this->_tableRow($data['headline'], array('bold' => true), array(1 => array('wrap' => 55)));
+ }
foreach($data['data'] as $category) {
foreach($category as $pkg) {
@@ -394,8 +394,9 @@ class PEAR_Frontend_CLI extends PEAR
break;
case 'list-all':
$this->_startTable($data);
- if (isset($data['headline']) && is_array($data['headline']))
+ if (isset($data['headline']) && is_array($data['headline'])) {
$this->_tableRow($data['headline'], array('bold' => true), array(1 => array('wrap' => 55)));
+ }
foreach($data['data'] as $category) {
foreach($category as $pkg) {
@@ -442,8 +443,7 @@ class PEAR_Frontend_CLI extends PEAR
),
);
default: {
- if (is_array($data))
- {
+ if (is_array($data)) {
$this->_startTable($data);
$count = count($data['data'][0]);
if ($count == 2) {