protected function createBadgeFromRepository($repository, $subject, $color, $format = 'svg', $context = null)
{
try {
$package = $this->fetchPackage($repository);
$text = $this->prepareText($package, $context);
} catch (\Exception $e) {
$subject = ' - ';
$text = ' - ';
$color = '7A7A7A';
}
return $this->createBadge($subject, $text, $color, $format);
}