From: vrana Date: Wed, 12 Dec 2012 22:21:06 +0000 (-0800) Subject: Simplify code by not passing local data to methods X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=02694d73ab99eb72fe71f5d1d0d539098d3a7648;p=arcanist.git Simplify code by not passing local data to methods --- diff --git a/src/workflow/ArcanistBranchWorkflow.php b/src/workflow/ArcanistBranchWorkflow.php index dbdf9a85..da389e40 100644 --- a/src/workflow/ArcanistBranchWorkflow.php +++ b/src/workflow/ArcanistBranchWorkflow.php @@ -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) {