/** * Statistics for how long the repository has been active * * @return array */ public function activeFor() { $firstCommitDate = new Carbon($this->repository->getFirstCommitDate()); $lastCommitDate = new Carbon($this->repository->getLastCommitDate()); return array('title' => 'Active for', 'value' => number_format($firstCommitDate->diffInDays($lastCommitDate)) . " days"); }