Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
Merge pull request #420 from localheinz/fix/method-name
Browse files Browse the repository at this point in the history
Fix: Method actually returns unregistered modules
  • Loading branch information
Ocramius committed Feb 24, 2015
2 parents f96b808 + 0fc0aac commit 7a082c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/ZfModule/src/ZfModule/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function indexAction()
'direction' => 'desc',
]);

$repositories = $this->registeredRepositories($currentUserRepositories);
$repositories = $this->unregisteredRepositories($currentUserRepositories);

$viewModel = new ViewModel(['repositories' => $repositories]);
$viewModel->setTerminal(true);
Expand All @@ -112,7 +112,7 @@ public function organizationAction()
'direction' => 'desc',
]);

$repositories = $this->registeredRepositories($userRepositories);
$repositories = $this->unregisteredRepositories($userRepositories);

$viewModel = new ViewModel(['repositories' => $repositories]);
$viewModel->setTerminal(true);
Expand All @@ -125,7 +125,7 @@ public function organizationAction()
* @param RepositoryCollection $repositories
* @return stdClass[]
*/
private function registeredRepositories(RepositoryCollection $repositories)
private function unregisteredRepositories(RepositoryCollection $repositories)
{
return array_filter(iterator_to_array($repositories), function ($repository) {
if ($repository->fork) {
Expand Down

0 comments on commit 7a082c8

Please sign in to comment.