File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313 "mutators": {
1414 "@default": true
1515 },
16- "minMsi": 75 ,
17- "minCoveredMsi": 85 ,
16+ "minMsi": 39 ,
17+ "minCoveredMsi": 80 ,
1818 "testFrameworkOptions": "--testsuite=unit"
1919}
Original file line number Diff line number Diff line change 66
77use function array_key_exists ;
88use function preg_match ;
9+ use function sprintf ;
910use function strtoupper ;
1011
1112final class Bytes
@@ -43,7 +44,8 @@ public static function parseFromString(string $string): self
4344 return new self ($ number * self ::SIZES [$ unit ]);
4445 }
4546
46- public function formatted (): string {
47+ public function formatted (): string
48+ {
4749 if ($ this ->bytes >= 1024 * 1024 * 1024 ) {
4850 return sprintf ('%.1f GiB ' , $ this ->bytes / 1024 / 1024 / 1024 );
4951 }
You can’t perform that action at this time.
0 commit comments