Changeset 35

Show
Ignore:
Timestamp:
03/09/06 14:01:45 (3 years ago)
Author:
mrook
Message:

Change docblocks, change type of default parameter args

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/classes/phing/tasks/ext/svn/SvnBaseTask.php

    r1 r35  
    109109         * Creates a VersionControl_SVN class based on $mode 
    110110         * 
    111          * @param mode The SVN mode to use (info, export, checkout, ...) 
     111         * @param string The SVN mode to use (info, export, checkout, ...) 
    112112         * @throws BuildException 
    113113         */ 
     
    151151         * Executes the constructed VersionControl_SVN instance 
    152152         * 
    153          * @param args Additional arguments to pass to SVN. 
    154          * @returns string Output generated by SVN. 
     153         * @param array Additional arguments to pass to SVN. 
     154         * @return string Output generated by SVN. 
    155155         */ 
    156         protected function run($args = NULL
     156        protected function run($args = array()
    157157        { 
    158158                $svnstack = PEAR_ErrorStack::singleton('VersionControl_SVN'); 
     
    160160                $tempArgs = $this->svnArgs; 
    161161                 
    162                 if (is_array($args)) 
    163                 { 
    164                         $tempArgs = array_merge($tempArgs, $args); 
    165                 } 
     162                $tempArgs = array_merge($tempArgs, $args); 
    166163                 
    167164                if ($output = $this->svn->run($tempArgs))