1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00

Simplify code by not passing local data to methods

This commit is contained in:
vrana 2012-12-12 14:21:06 -08:00
parent 48077c80f2
commit 02694d73ab

View file

@ -71,7 +71,7 @@ EOTEXT
throw new ArcanistUsageException('No branches in this working copy.');
}
$branches = $this->loadCommitInfo($branches, $repository_api);
$branches = $this->loadCommitInfo($branches);
$revisions = $this->loadRevisions($branches);
@ -80,9 +80,8 @@ EOTEXT
return 0;
}
private function loadCommitInfo(
array $branches,
ArcanistRepositoryAPI $repository_api) {
private function loadCommitInfo(array $branches) {
$repository_api = $this->getRepositoryAPI();
$futures = array();
foreach ($branches as $branch) {