1
0
Fork 0

Fixed code style issues.

pull/8085/head
Dane Powell 2019-04-06 08:53:32 -07:00
parent 3e6300b5e8
commit a908e22a91
No known key found for this signature in database
GPG Key ID: 5FCA7D7DAF2DDD5B
1 changed files with 2 additions and 1 deletions

View File

@ -255,7 +255,8 @@ class PluginManager
{ {
$packages = $repo->getPackages(); $packages = $repo->getPackages();
$generator = $this->composer->getAutoloadGenerator(); $generator = $this->composer->getAutoloadGenerator();
$packageMap = $generator->buildPackageMap($this->composer->getInstallationManager(), $this->composer->getPackage(), $packages); $rootPackage = $this->composer->getPackage(); /** @var PackageInterface $rootPackage */
$packageMap = $generator->buildPackageMap($this->composer->getInstallationManager(), $rootPackage, $packages);
$sortedPackageMap = array_reverse($generator->sortPackageMap($packageMap)); $sortedPackageMap = array_reverse($generator->sortPackageMap($packageMap));
foreach ($sortedPackageMap as $fullPackage) { foreach ($sortedPackageMap as $fullPackage) {
$package = $fullPackage[0]; /** @var PackageInterface $package */ $package = $fullPackage[0]; /** @var PackageInterface $package */