Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Dec 12, 2023
1 parent 22b0d7d commit 5cd69ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"mutators": {
"@default": true
},
"minMsi": 75,
"minCoveredMsi": 85,
"minMsi": 39,
"minCoveredMsi": 80,
"testFrameworkOptions": "--testsuite=unit"
}
4 changes: 3 additions & 1 deletion src/Bytes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use function array_key_exists;
use function preg_match;
use function sprintf;
use function strtoupper;

final class Bytes
Expand Down Expand Up @@ -43,7 +44,8 @@ public static function parseFromString(string $string): self
return new self($number * self::SIZES[$unit]);
}

public function formatted(): string {
public function formatted(): string
{
if ($this->bytes >= 1024 * 1024 * 1024) {
return sprintf('%.1f GiB', $this->bytes / 1024 / 1024 / 1024);
}
Expand Down

0 comments on commit 5cd69ac

Please sign in to comment.