From: Greg Beaver Date: Sat, 6 Dec 2003 23:37:30 +0000 (+0000) Subject: CS X-Git-Tag: php-5.0.0b3RC1~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfb05861b92dc8ec064cbbe1323274752f3f515e;p=php CS --- 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) {