/** * Shows the top committers for an award and also announces the very first one as the winner. * * This is solely for the CLI output - does no data manipulation. * * @param string the type of the award * * @return void */ protected function showTopRankingAndAnnouncement($type) { foreach ($this->topCommitters as $topCommitter) { $this->outputLine('%d commits from %s <%s>', array($topCommitter->getCommitCountByType($type), $topCommitter->getUserName(), $topCommitter->getUserEmail())); } $this->outputLine('Happy to announce that the winner is: %s (%s) with %d commits!', array($this->topCommitters->getFirst()->getUserName(), $this->topCommitters->getFirst()->getUserEmail(), $this->topCommitters->getFirst()->getCommitCountByType($type))); }