Skip to content

Commit

Permalink
add missing use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMeschke committed Nov 18, 2024
1 parent 0f32963 commit 8296dc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user_guide_src/source/libraries/files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ the results in kibibytes, mebibytes etc. respectively. You can pass in a precisi
the amount of decimal places.

.. literalinclude:: files/017.php
:lines: 2-
:lines: 3-

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

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

.. literalinclude:: files/018.php
:lines: 2-
:lines: 3-

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

Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/libraries/files/017.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
use CodeIgniter\Files\FileSizeUnit;

$bytes = $file->getSizeByUnitBinary(); // 256901
$kibibytes = $file->getSizeByUnitBinary(FileSizeUnit::KB); // 250.880
Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/libraries/files/018.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
use CodeIgniter\Files\FileSizeUnit;

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

0 comments on commit 8296dc3

Please sign in to comment.