Skip to content

Commit

Permalink
Merge pull request #8 from codebtech/chore/update-badge
Browse files Browse the repository at this point in the history
Add PHP SVG badge and update badge path in BadgeComposer
  • Loading branch information
m0hanraj authored May 31, 2024
2 parents 449eb32 + 38c38ea commit 4e9c9ed
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions badges/php.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/BadgeComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function processFile(string $inputFile): void
private function finalizeCoverage(): void
{
$totalCoverage = $this->totalCoverage / count($this->inputFiles); // Average coverage across all files
$template = file_get_contents(__DIR__ . '/../badge-templates/badge.svg');
$template = file_get_contents(__DIR__ . '/../template/badge.svg');

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

Expand Down
File renamed without changes

0 comments on commit 4e9c9ed

Please sign in to comment.