original_string: public function findPackages($name, $version)
      {
          $packages = array();
  
          foreach ($this->repositories as $repository) {
              $packages = array_merge($packages, $repository->findPackages($name, $version));
          }
  
          return $packages;
      }
code: public function findPackages($name, $version)
      {
          $packages = array();
  
          foreach ($this->repositories as $repository) {
              $packages = array_merge($packages, $repository->findPackages($name, $version));
          }
  
          return $packages;
      }
code_tokens: public function findPackages ( $ name , $ version ) { $ packages = array ( ) ; foreach ( $ this -> repositories as $ repository ) { $ packages = array_merge ( $ packages , $ repository -> findPackages ( $ name , $ version ) ) ; } return $ packages ; }
docstring: Searches for all packages matching a name and optionally a version in managed repositories.
  
  @param string $name    package name
  @param string $version package version
  
  @return array
docstring_tokens: Searches for all packages matching a name and optionally a version in managed repositories .