Use elseif instead of else { if {
parent
0daaa1a902
commit
83159dc153
|
@ -274,11 +274,9 @@ class Pool
|
||||||
if (isset($this->packageByExactName[$name])) {
|
if (isset($this->packageByExactName[$name])) {
|
||||||
$candidates = array_merge($candidates, $this->packageByExactName[$name]);
|
$candidates = array_merge($candidates, $this->packageByExactName[$name]);
|
||||||
}
|
}
|
||||||
} else {
|
} elseif (isset($this->packageByName[$name])) {
|
||||||
if (isset($this->packageByName[$name])) {
|
|
||||||
$candidates = array_merge($candidates, $this->packageByName[$name]);
|
$candidates = array_merge($candidates, $this->packageByName[$name]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$matches = $provideMatches = array();
|
$matches = $provideMatches = array();
|
||||||
$nameMatch = false;
|
$nameMatch = false;
|
||||||
|
|
Loading…
Reference in New Issue