getProject()->getType()) { case 'github': return 'https://github.com/' . $this->getProject()->getReference() . '/commit/' . $this->getCommitId(); } } public function getBranchLink() { switch($this->getProject()->getType()) { case 'github': return 'https://github.com/' . $this->getProject()->getReference() . '/tree/' . $this->getBranch(); } } }