From: Martin Jansen Date: Thu, 18 Mar 2004 12:23:57 +0000 (+0000) Subject: * Converting tabs to spaces X-Git-Tag: php-5.0.0RC1~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba7d6efe7ba49682c8774af06537ca7c57858d0c;p=php * Converting tabs to spaces --- diff --git a/pear/PEAR/Command/Mirror.php b/pear/PEAR/Command/Mirror.php index 4a6b43e1fb..267c1e8328 100644 --- a/pear/PEAR/Command/Mirror.php +++ b/pear/PEAR/Command/Mirror.php @@ -76,21 +76,23 @@ class PEAR_Command_Mirror extends PEAR_Command_Common */ function doDownloadAll($command, $options, $params) { - $this->config->set("php_dir", "."); - $remote = &new PEAR_Remote($this->config); - $remoteInfo = $remote->call("package.listAll"); - if(PEAR::isError($remoteInfo)) { - return $remoteInfo; - } - $cmd = &PEAR_Command::factory("download", $this->config); - if(PEAR::isError($cmd)) { - return $cmd; - } - foreach($remoteInfo as $pkgn=>$pkg) { - // error handling not neccesary, because - // already done by the download command - $cmd->run("download", array(), array($pkgn)); - } + $this->config->set("php_dir", "."); + $remote = &new PEAR_Remote($this->config); + $remoteInfo = $remote->call("package.listAll"); + if (PEAR::isError($remoteInfo)) { + return $remoteInfo; + } + $cmd = &PEAR_Command::factory("download", $this->config); + if (PEAR::isError($cmd)) { + return $cmd; + } + foreach ($remoteInfo as $pkgn => $pkg) { + /** + * Error handling not neccesary, because already done by + * the download command + */ + $cmd->run("download", array(), array($pkgn)); + } return true; }