protected function findPage($page) { $crawler = $this->doRequest($page); $urls = $this->extractPageUrls($crawler); $repositories = array(); foreach ($urls as $url) { $repository = $this->extractUrlRepository($url); if (null !== $repository && !in_array($repository, $repositories)) { $repositories[] = $repository; } } return $repositories; }