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());
// collect funding data from default branches
foreach ($result['packages'] as $pkg) {
foreach ($result['packages'] as $package) {
if (
!$pkg instanceof AliasPackage
&& $pkg instanceof CompletePackageInterface
&& $pkg->isDefaultBranch()
&& $pkg->getFunding()
&& isset($packagesToLoad[$pkg->getName()])
!$package instanceof AliasPackage
&& $package instanceof CompletePackageInterface
&& $package->isDefaultBranch()
&& $package->getFunding()
&& isset($packagesToLoad[$package->getName()])
) {
$fundings = $this->insertFundingData($fundings, $pkg);
$fundings = $this->insertFundingData($fundings, $package);
unset($packagesToLoad[$package->getName()]);
}
}