Skip to content

Commit 38c38ea

Browse files
committed
Add PHP SVG badge and update badge path in BadgeComposer
A PHP SVG badge was introduced to the repository and the file path to badges in the BadgeComposer class was updated. The SVG badge reflects usage percentage in PHP. Also, the folder hierarchy was improved by shifting 'badge-templates' directory to a more appropriate parent directory named 'template'.
1 parent 449eb32 commit 38c38ea

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

Diff for: badges/php.svg

+21
Loading

Diff for: src/BadgeComposer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function processFile(string $inputFile): void
118118
private function finalizeCoverage(): void
119119
{
120120
$totalCoverage = $this->totalCoverage / count($this->inputFiles); // Average coverage across all files
121-
$template = file_get_contents(__DIR__ . '/../badge-templates/badge.svg');
121+
$template = file_get_contents(__DIR__ . '/../template/badge.svg');
122122

123123
$template = str_replace('{{ total }}', $totalCoverage, $template);
124124

File renamed without changes.

0 commit comments

Comments
 (0)