]> granicus.if.org Git - php/commitdiff
* Converting tabs to spaces
authorMartin Jansen <mj@php.net>
Thu, 18 Mar 2004 12:23:57 +0000 (12:23 +0000)
committerMartin Jansen <mj@php.net>
Thu, 18 Mar 2004 12:23:57 +0000 (12:23 +0000)
pear/PEAR/Command/Mirror.php

index 4a6b43e1fb3e17ce93ed46081827edd4116f18e4..267c1e83280a1f03ac9c5b47c1b22e5b853789eb 100644 (file)
@@ -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;
     }