function findAll() { list($repositories, $valid) = Git::loadRepositories(); $repoSuffix = System::get('repo_suffix'); $repos = array(); foreach ($repositories as $repository) { $repo = array('link' => $this->link($repository), 'description' => file_get_contents("{$repository}{$repoSuffix}description"), 'owner' => $this->fileOwner($repository), 'last_change' => $this->lastChange($repository), 'download' => $this->link($repository, array('download' => true))); $stats = $this->getStats($repository, 0, 0); $repo['today'] = $stats['today']; $repo['total'] = $stats['total']; $repos[] = $repo; } return $repos; }