| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class OsHelper |
||
| 6 | { |
||
| 7 | public static function tempFile(): string |
||
| 8 | { |
||
| 9 | return tempnam(self::tempDirectory(), self::randomFileName()); |
||
| 10 | } |
||
| 11 | |||
| 12 | public static function tempDirectory(): string |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function makeTempDirectory(): string |
||
| 23 | } |
||
| 24 | |||
| 25 | private static function randomFileName(): string |
||
| 31 |