public function getCommits($nb = 12) { $commits = $this->getGitRepo()->getCommits($nb); foreach ($commits as $key => $commit) { $commits[$key]['url'] = $this->entity->getGithubUrl() . '/commit/' . $commit['id']; } return $commits; }