public function getQualityBadge(Repo $repo)
    {
        if ($repo->getQualityBadgeHash()) {
            return sprintf(
                '<img src="%s" />',
                $this->helper->getQualityBadgeUrl(
                    $repo->getSlug(),
                    $repo->getType(),
                    $repo->getQualityBadgeHash()
                )
            );
        }

        return '';
    }