Fix var name
parent
86af5e5c6e
commit
4a2ea3c67a
|
@ -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()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue