protected function formatPackageNames(array $packageNames)
    {
        $requires = [];

        foreach ($packageNames as $packageName) {
            $packagePair = new PackageNameVersion($packageName);

            $requires[$packagePair->getName()] = $packagePair->getVersion();
        }

        return $requires;
    }
protected function formatPackageNames(array $packageNames)
    {
        $requires = [];

        foreach ($packageNames as $packageName) {
            $packagePair = new PackageNameVersion($packageName);

            $requires[$packagePair->getName()] = $packagePair->getVersion();
        }

        return $requires;
    }
protected function formatPackageNames ( array $ packageNames ) { $ requires = [ ] ; foreach ( $ packageNames as $ packageName ) { $ packagePair = new PackageNameVersion ( $ packageName ) ; $ requires [ $ packagePair -> getName ( ) ] = $ packagePair -> getVersion ( ) ; } return $ requires ; }
Formats the packages names.

@return array List in which the key is the name and the value is the version
Formats the packages names .