In both cases, this was no issues but changing it makes the code
cleaner.
// remove package files
@unlink(TMP_DIR.'install/packages/'.$wcfPackageFile);
- foreach ($otherPackages as $packageFile) {
- @unlink(TMP_DIR.'install/packages/'.$packageFile);
+ foreach ($otherPackages as $otherPackageFile) {
+ @unlink(TMP_DIR.'install/packages/'.$otherPackageFile);
}
// throw exception again
// check if all requirements are met
$isInstallable = true;
- foreach ($archive->getOpenRequirements() as $packageName => $package) {
- if (!isset($package['file'])) {
+ foreach ($archive->getOpenRequirements() as $packageName => $requiredPackage) {
+ if (!isset($requiredPackage['file'])) {
// requirement is neither installed nor shipped, check if it is about to be installed
if (!isset(self::$pendingPackages[$packageName])) {
$isInstallable = false;