original_string: public function getContents()
      {
          if (is_array($this->_contents)) return $this->_contents;
          $this->_contents = array();
          if(!isset($this->_packageXml->contents->target)) {
              return $this->_contents;
          }
          foreach($this->_packageXml->contents->target as $target) {
              $targetUri = $this->getTarget()->getTargetUri($target['name']);
              $this->_getList($target, $targetUri);
          }
          return $this->_contents;
      }
code: public function getContents()
      {
          if (is_array($this->_contents)) return $this->_contents;
          $this->_contents = array();
          if(!isset($this->_packageXml->contents->target)) {
              return $this->_contents;
          }
          foreach($this->_packageXml->contents->target as $target) {
              $targetUri = $this->getTarget()->getTargetUri($target['name']);
              $this->_getList($target, $targetUri);
          }
          return $this->_contents;
      }
code_tokens: public function getContents ( ) { if ( is_array ( $ this -> _contents ) ) return $ this -> _contents ; $ this -> _contents = array ( ) ; if ( ! isset ( $ this -> _packageXml -> contents -> target ) ) { return $ this -> _contents ; } foreach ( $ this -> _packageXml -> contents -> target as $ target ) { $ targetUri = $ this -> getTarget ( ) -> getTargetUri ( $ target [ 'name' ] ) ; $ this -> _getList ( $ target , $ targetUri ) ; } return $ this -> _contents ; }
docstring: Create list of all files from package.xml
  
  @return array
docstring_tokens: Create list of all files from package . xml