REBELinBLUE\Deployer\Presenters\ProjectPresenter::presentTypeIcon PHP Method

presentTypeIcon() public method

Gets an icon which represents the repository type.
public presentTypeIcon ( ) : string
return string
    public function presentTypeIcon()
    {
        $details = $this->accessDetails();
        if (isset($details['domain'])) {
            if (preg_match('/github\\.com/', $details['domain'])) {
                return 'fa-github';
            } elseif (preg_match('/gitlab\\.com/', $details['domain'])) {
                return 'fa-gitlab';
            } elseif (preg_match('/bitbucket/', $details['domain'])) {
                return 'fa-bitbucket';
            } elseif (preg_match('/amazonaws\\.com/', $details['domain'])) {
                return 'fa-amazon';
            }
        }
        return 'fa-git-square';
    }