From 8296dc3796d4f558c10a4e920f77c12221f0fe61 Mon Sep 17 00:00:00 2001 From: Thomas Meschke Date: Mon, 18 Nov 2024 11:02:25 +0100 Subject: [PATCH] add missing use statements --- user_guide_src/source/libraries/files.rst | 4 ++-- user_guide_src/source/libraries/files/017.php | 1 + user_guide_src/source/libraries/files/018.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/libraries/files.rst b/user_guide_src/source/libraries/files.rst index c171b5b047a1..8c88ba01c647 100644 --- a/user_guide_src/source/libraries/files.rst +++ b/user_guide_src/source/libraries/files.rst @@ -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. @@ -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. diff --git a/user_guide_src/source/libraries/files/017.php b/user_guide_src/source/libraries/files/017.php index f3cd9450af9c..ab917a1eb133 100644 --- a/user_guide_src/source/libraries/files/017.php +++ b/user_guide_src/source/libraries/files/017.php @@ -1,4 +1,5 @@ getSizeByUnitBinary(); // 256901 $kibibytes = $file->getSizeByUnitBinary(FileSizeUnit::KB); // 250.880 diff --git a/user_guide_src/source/libraries/files/018.php b/user_guide_src/source/libraries/files/018.php index 89138f8dbc04..d4926e1d52ac 100644 --- a/user_guide_src/source/libraries/files/018.php +++ b/user_guide_src/source/libraries/files/018.php @@ -1,4 +1,5 @@ getSizeByUnitMetric(); // 256901 $kilobytes = $file->getSizeByUnitMetric(FileSizeUnit::KB); // 256.901