Add count number format (#13)

This commit is contained in:
Anton Komarev
2020-07-22 20:01:59 +03:00
committed by GitHub
parent afe541c4c6
commit 384456a73e

View File

@@ -33,7 +33,7 @@ final class BadgeImageRendererService
public function renderBadgeWithCount(string $label, int $count, string $messageBackgroundFill, string $badgeStyle): string
{
$message = (string) $count;
$message = number_format($count);
return $this->renderBadge($label, $message, $messageBackgroundFill, $badgeStyle);
}