diff --git a/module/ZfModule/src/ZfModule/Controller/IndexController.php b/module/ZfModule/src/ZfModule/Controller/IndexController.php index a1d7e926..4f64489c 100644 --- a/module/ZfModule/src/ZfModule/Controller/IndexController.php +++ b/module/ZfModule/src/ZfModule/Controller/IndexController.php @@ -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); @@ -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); @@ -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) {