original_string: protected function formatPackageNames(array $packageNames)
      {
          $requires = [];
  
          foreach ($packageNames as $packageName) {
              $packagePair = new PackageNameVersion($packageName);
  
              $requires[$packagePair->getName()] = $packagePair->getVersion();
          }
  
          return $requires;
      }
code: protected function formatPackageNames(array $packageNames)
      {
          $requires = [];
  
          foreach ($packageNames as $packageName) {
              $packagePair = new PackageNameVersion($packageName);
  
              $requires[$packagePair->getName()] = $packagePair->getVersion();
          }
  
          return $requires;
      }
code_tokens: protected function formatPackageNames ( array $ packageNames ) { $ requires = [ ] ; foreach ( $ packageNames as $ packageName ) { $ packagePair = new PackageNameVersion ( $ packageName ) ; $ requires [ $ packagePair -> getName ( ) ] = $ packagePair -> getVersion ( ) ; } return $ requires ; }
docstring: Formats the packages names.
  
  @return array List in which the key is the name and the value is the version
docstring_tokens: Formats the packages names .