original_string: public function getTree($asArray = false)
      {
          $return = array();
          if ($asArray && $this->tree) {
              foreach ($this->tree as $file) {
                  $return[] = $file->toArray();
              }
          }
  
          return $asArray ? $return : $this->tree;
      }
code: public function getTree($asArray = false)
      {
          $return = array();
          if ($asArray && $this->tree) {
              foreach ($this->tree as $file) {
                  $return[] = $file->toArray();
              }
          }
  
          return $asArray ? $return : $this->tree;
      }
code_tokens: public function getTree ( $ asArray = false ) { $ return = array ( ) ; if ( $ asArray && $ this -> tree ) { foreach ( $ this -> tree as $ file ) { $ return [ ] = $ file -> toArray ( ) ; } } return $ asArray ? $ return : $ this -> tree ; }
docstring: get Tree.
  
  @param bool $asArray
  
  @return array|FileInfo[]
docstring_tokens: get Tree .