original_string: public function getDependencyPackages()
      {
          $this->_dependencyPackages = array();
          if (!isset($this->_packageXml->dependencies->required->package)) {
              return $this->_dependencyPackages;
          }
          foreach($this->_packageXml->dependencies->required->package as $_package) {
              $add = array(
                  'name'    => (string)$_package->name,
                  'channel' => (string)$_package->channel,
                  'min'     => (string)$_package->min,
                  'max'     => (string)$_package->max,
              );
              if(isset($_package->files)) {
                  $add['files'] = array();
                  foreach($_package->files as $node) {
                      if(isset($node->file)) {
  
                          $add['files'][] = array('target' => (string) $node->file['target'], 'path'=> (string) $node->file['path']);
                      }
                  }
              }
              $this->_dependencyPackages[] = $add;
          }
          return $this->_dependencyPackages;
      }
code: public function getDependencyPackages()
      {
          $this->_dependencyPackages = array();
          if (!isset($this->_packageXml->dependencies->required->package)) {
              return $this->_dependencyPackages;
          }
          foreach($this->_packageXml->dependencies->required->package as $_package) {
              $add = array(
                  'name'    => (string)$_package->name,
                  'channel' => (string)$_package->channel,
                  'min'     => (string)$_package->min,
                  'max'     => (string)$_package->max,
              );
              if(isset($_package->files)) {
                  $add['files'] = array();
                  foreach($_package->files as $node) {
                      if(isset($node->file)) {
  
                          $add['files'][] = array('target' => (string) $node->file['target'], 'path'=> (string) $node->file['path']);
                      }
                  }
              }
              $this->_dependencyPackages[] = $add;
          }
          return $this->_dependencyPackages;
      }
code_tokens: public function getDependencyPackages ( ) { $ this -> _dependencyPackages = array ( ) ; if ( ! isset ( $ this -> _packageXml -> dependencies -> required -> package ) ) { return $ this -> _dependencyPackages ; } foreach ( $ this -> _packageXml -> dependencies -> required -> package as $ _package ) { $ add = array ( 'name' => ( string ) $ _package -> name , 'channel' => ( string ) $ _package -> channel , 'min' => ( string ) $ _package -> min , 'max' => ( string ) $ _package -> max , ) ; if ( isset ( $ _package -> files ) ) { $ add [ 'files' ] = array ( ) ; foreach ( $ _package -> files as $ node ) { if ( isset ( $ node -> file ) ) { $ add [ 'files' ] [ ] = array ( 'target' => ( string ) $ node -> file [ 'target' ] , 'path' => ( string ) $ node -> file [ 'path' ] ) ; } } } $ this -> _dependencyPackages [ ] = $ add ; } return $ this -> _dependencyPackages ; }
docstring: Get list of dependency packages.
  
  @return array
docstring_tokens: Get list of dependency packages .