Skip to content

Commit c7f21b1

Browse files
committed
fix failing jobs
1 parent a186c0f commit c7f21b1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

system/Files/File.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function getSize()
7474
* Retrieve the file size by unit, calculated in IEC standards with 1024 as base value.
7575
*
7676
* @phpstan-param positive-int $precision
77+
*
7778
* @return false|int|string
7879
*/
7980
public function getSizeByUnitBinary(FileSizeUnit $unit = FileSizeUnit::B, int $precision = 3)
@@ -85,6 +86,7 @@ public function getSizeByUnitBinary(FileSizeUnit $unit = FileSizeUnit::B, int $p
8586
* Retrieve the file size by unit, calculated in metric standards with 1000 as base value.
8687
*
8788
* @phpstan-param positive-int $precision
89+
*
8890
* @return false|int|string
8991
*/
9092
public function getSizeByUnitMetric(FileSizeUnit $unit = FileSizeUnit::B, int $precision = 3)
@@ -223,7 +225,7 @@ protected function getSizeByUnitInternal(int $fileSizeBase, FileSizeUnit $unit,
223225
$divider = $fileSizeBase ** $exponent;
224226
$size = $this->getSize() / $divider;
225227

226-
if($unit !== FileSizeUnit::B) {
228+
if ($unit !== FileSizeUnit::B) {
227229
$size = number_format($size, $precision);
228230
}
229231

tests/system/Files/FileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function testGetDestination(): void
170170
}
171171

172172
/**
173-
* @return array<string, array<int, CodeIgniter\Files\FileSizeUnit>>
173+
* @return array<string, array<int, FileSizeUnit>>
174174
*/
175175
public static function provideGetSizeData()
176176
{

0 commit comments

Comments
 (0)