Skip to content

Commit 7db92d1

Browse files
committed
docs: improve file.inc documentation and remove stray braces
Add comprehensive documentation to the file header explaining the purpose of helper functions and their safety checks. Remove trailing stray braces that appear to be leftover code.
1 parent ceb7ee4 commit 7db92d1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

include/file.inc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
22

33
/*
4-
*
4+
* This file contains helper functions to deal with files in a safe manner.
5+
* These functions check for file existence and readability before performing
6+
* any operations on them.
57
*/
68

79
function file_get_size(string $filename): int|false
@@ -30,6 +32,3 @@ function file_get_contents_if_exists(string $filename): string|false
3032

3133
return file_get_contents($filename);
3234
}
33-
{
34-
35-
}

0 commit comments

Comments
 (0)