| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class File |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Create dir from filename if not exists. |
||
| 20 | * |
||
| 21 | * @param string $filename Filename |
||
| 22 | */ |
||
| 23 | public static function createMissingDirectory($filename) |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Warn about overwriting file if exists and empty it. |
||
| 33 | * |
||
| 34 | * @param string $filename Filename without extension |
||
| 35 | * @param string $fileExtension File extension. Default is '.dat' |
||
| 36 | * |
||
| 37 | * @see Input::dieOnDenyUserConfirm() |
||
| 38 | */ |
||
| 39 | public static function checkIfFileExists($filename, $fileExtension = '.dat') |
||
| 51 |