1
0
Fork 0

Rename method

pull/606/head
Jordi Boggiano 2012-04-23 09:24:59 +02:00
parent 06fb1b8083
commit ebf78135c9
1 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class DefaultPolicy implements PolicyInterface
$literals = $this->pruneToHighestPriorityOrInstalled($pool, $installedMap, $literals); $literals = $this->pruneToHighestPriorityOrInstalled($pool, $installedMap, $literals);
$literals = $this->pruneToLocalAliases($literals); $literals = $this->pruneRemoteAliases($literals);
} }
$selected = call_user_func_array('array_merge', $packages); $selected = call_user_func_array('array_merge', $packages);
@ -244,8 +244,10 @@ class DefaultPolicy implements PolicyInterface
/** /**
* Assumes that locally aliased (in root package requires) packages take priority over branch-alias ones * Assumes that locally aliased (in root package requires) packages take priority over branch-alias ones
*
* If no package is a local alias, nothing happens
*/ */
protected function pruneToLocalAliases(array $literals) protected function pruneRemoteAliases(array $literals)
{ {
$hasLocalAlias = false; $hasLocalAlias = false;