original_string: protected function getPackageVersions($id)
      {
          $localPackage  = $this->get('package.repository')->findOneById($id);
          $remotePackage = $this->get('package.helper')->getPackage($localPackage->getFullName());
          $versions      = $remotePackage->getVersions();
          $result        = [];
          
          foreach ($versions as $version) {
              $this->getPackageInfo($version, $result);
          }
          
          return $result;
      }
code: protected function getPackageVersions($id)
      {
          $localPackage  = $this->get('package.repository')->findOneById($id);
          $remotePackage = $this->get('package.helper')->getPackage($localPackage->getFullName());
          $versions      = $remotePackage->getVersions();
          $result        = [];
          
          foreach ($versions as $version) {
              $this->getPackageInfo($version, $result);
          }
          
          return $result;
      }
code_tokens: protected function getPackageVersions ( $ id ) { $ localPackage = $ this -> get ( 'package.repository' ) -> findOneById ( $ id ) ; $ remotePackage = $ this -> get ( 'package.helper' ) -> getPackage ( $ localPackage -> getFullName ( ) ) ; $ versions = $ remotePackage -> getVersions ( ) ; $ result = [ ] ; foreach ( $ versions as $ version ) { $ this -> getPackageInfo ( $ version , $ result ) ; } return $ result ; }
docstring: Returns version information for package
  
  @param $id
  
  @return array
docstring_tokens: Returns version information for package