Skip to content

Commit 8296dc3

Browse files
committed
add missing use statements
1 parent 0f32963 commit 8296dc3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

user_guide_src/source/libraries/files.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ the results in kibibytes, mebibytes etc. respectively. You can pass in a precisi
7474
the amount of decimal places.
7575

7676
.. literalinclude:: files/017.php
77-
:lines: 2-
77+
:lines: 3-
7878

7979
A ``RuntimeException`` will be thrown if the file does not exist or an error occurs.
8080

@@ -86,7 +86,7 @@ the results in kilobytes, megabytes etc. respectively. You can pass in a precisi
8686
the amount of decimal places.
8787

8888
.. literalinclude:: files/018.php
89-
:lines: 2-
89+
:lines: 3-
9090

9191
A ``RuntimeException`` will be thrown if the file does not exist or an error occurs.
9292

user_guide_src/source/libraries/files/017.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
use CodeIgniter\Files\FileSizeUnit;
23

34
$bytes = $file->getSizeByUnitBinary(); // 256901
45
$kibibytes = $file->getSizeByUnitBinary(FileSizeUnit::KB); // 250.880

user_guide_src/source/libraries/files/018.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
use CodeIgniter\Files\FileSizeUnit;
23

34
$bytes = $file->getSizeByUnitMetric(); // 256901
45
$kilobytes = $file->getSizeByUnitMetric(FileSizeUnit::KB); // 256.901

0 commit comments

Comments
 (0)