Skip to content

Commit

Permalink
chore(coverage-badge): format value for badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Sep 3, 2024
1 parent 282e40d commit 51747bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getCoverageStatus($percentage) {
// Generate JSON report
$map = [
"total" => [
"statements" => ["pct" => $statementsPct],
"statements" => ["pct" => number_format($statementsPct, 2)],
]
];
file_put_contents($outputPath . "index.json", json_encode($map));
Expand Down

0 comments on commit 51747bd

Please sign in to comment.