original_string: protected function generateRequirePackages(array $packagePairs)
      {
          $requires = [];
  
          foreach ($packagePairs as $packagePair) {
              $requires[$packagePair->getName()] = $packagePair->getVersion();
          }
  
          return $requires;
      }
code: protected function generateRequirePackages(array $packagePairs)
      {
          $requires = [];
  
          foreach ($packagePairs as $packagePair) {
              $requires[$packagePair->getName()] = $packagePair->getVersion();
          }
  
          return $requires;
      }
code_tokens: protected function generateRequirePackages ( array $ packagePairs ) { $ requires = [ ] ; foreach ( $ packagePairs as $ packagePair ) { $ requires [ $ packagePair -> getName ( ) ] = $ packagePair -> getVersion ( ) ; } return $ requires ; }
docstring: Generates the list of required packages.
  
  @param PackageNameVersion[] $packagePairs
  
  @return array List of packages in which the key is the package's name
  and the value is the package's version
docstring_tokens: Generates the list of required packages .