We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8984ce2 + 16fe0a2 commit d872edcCopy full SHA for d872edc
coverage-check.php
@@ -11,7 +11,7 @@
11
}
12
13
$inputFile = $argv[1];
14
-$percentage = min(100, max(0, (int)$argv[2]));
+$percentage = min(100, max(0, (float)$argv[2]));
15
16
$xml = new SimpleXMLElement(file_get_contents($inputFile));
17
$metrics = $xml->xpath('//metrics');
@@ -40,4 +40,4 @@
40
exit(1);
41
42
43
-echo 'Total code coverage is ' . sprintf('%0.2f', $TPC) . '% - OK!' . PHP_EOL;
+echo 'Total code coverage is ' . sprintf('%0.2f', $TPC) . '% - OK!' . PHP_EOL;
0 commit comments