1
0
Fork 0

Change "else if" to "elseif"

pull/715/head
Nils Adermann 2012-05-21 18:34:12 +02:00
parent 99200af51b
commit 21c7e219e2
2 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ class RuleSetGenerator
if (($package instanceof AliasPackage) && $package->getAliasOf() === $provider) {
$this->addRule(RuleSet::TYPE_PACKAGE, $rule = $this->createRequireRule($package, array($provider), Rule::RULE_PACKAGE_ALIAS, (string) $package));
} else if (!$this->obsoleteImpossibleForAlias($package, $provider)) {
} elseif (!$this->obsoleteImpossibleForAlias($package, $provider)) {
$reason = ($package->getName() == $provider->getName()) ? Rule::RULE_PACKAGE_SAME_NAME : Rule::RULE_PACKAGE_IMPLICIT_OBSOLETES;
$this->addRule(RuleSet::TYPE_PACKAGE, $rule = $this->createConflictRule($package, $provider, $reason, (string) $package));
}

View File

@ -381,7 +381,7 @@ class Solver
throw new SolverBugException(
"Trying to revert to invalid level ".(int) $newLevel." from level ".(int) $level."."
);
} else if (!$newRule) {
} elseif (!$newRule) {
throw new SolverBugException(
"No rule was learned from analyzing $rule at level $level."
);
@ -451,7 +451,7 @@ class Solver
if (1 === $l) {
$l1num++;
} else if ($level === $l) {
} elseif ($level === $l) {
$num++;
} else {
// not level1 or conflict level, add to new rule
@ -660,7 +660,7 @@ class Solver
if ($foundDisabled && $rule->isEnabled()) {
$rule->disable();
} else if (!$foundDisabled && $rule->isDisabled()) {
} elseif (!$foundDisabled && $rule->isDisabled()) {
$rule->enable();
}
}