diff --git a/infection.json.dist b/infection.json.dist index 7e65c0d..8bfc3e1 100644 --- a/infection.json.dist +++ b/infection.json.dist @@ -13,7 +13,7 @@ "mutators": { "@default": true }, - "minMsi": 75, - "minCoveredMsi": 85, + "minMsi": 39, + "minCoveredMsi": 80, "testFrameworkOptions": "--testsuite=unit" } diff --git a/src/Bytes.php b/src/Bytes.php index 227d392..4a23056 100644 --- a/src/Bytes.php +++ b/src/Bytes.php @@ -6,6 +6,7 @@ use function array_key_exists; use function preg_match; +use function sprintf; use function strtoupper; final class Bytes @@ -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); }