| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class FileUtils extends AbstractStdlib |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Read a filename from filesystem and return its binary data. |
||
| 21 | * Optionally, base64 encode the returned binary data. |
||
| 22 | */ |
||
| 23 | 58 | public static function read(string $filename, bool $base64Encode = false): string |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Write binary data to a filename on filesystem. |
||
| 37 | * Optionally, based decode the binary data before writing. |
||
| 38 | */ |
||
| 39 | 4 | public static function write(string $filename, string $binaryData, bool $base64Encoded = false): bool |
|
| 51 |