1
0
Fork 0

Fix var name

pull/9026/head
Jordi Boggiano 2020-06-25 09:16:23 +02:00
parent 86af5e5c6e
commit 4a2ea3c67a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 7 additions and 7 deletions

View File

@ -54,15 +54,15 @@ class FundCommand extends BaseCommand
$result = $remoteRepos->loadPackages($packagesToLoad, array('dev' => BasePackage::STABILITY_DEV), array()); $result = $remoteRepos->loadPackages($packagesToLoad, array('dev' => BasePackage::STABILITY_DEV), array());
// collect funding data from default branches // collect funding data from default branches
foreach ($result['packages'] as $pkg) { foreach ($result['packages'] as $package) {
if ( if (
!$pkg instanceof AliasPackage !$package instanceof AliasPackage
&& $pkg instanceof CompletePackageInterface && $package instanceof CompletePackageInterface
&& $pkg->isDefaultBranch() && $package->isDefaultBranch()
&& $pkg->getFunding() && $package->getFunding()
&& isset($packagesToLoad[$pkg->getName()]) && isset($packagesToLoad[$package->getName()])
) { ) {
$fundings = $this->insertFundingData($fundings, $pkg); $fundings = $this->insertFundingData($fundings, $package);
unset($packagesToLoad[$package->getName()]); unset($packagesToLoad[$package->getName()]);
} }
} }