| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FileFunction |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * 获得文件mime_type |
||
| 14 | * |
||
| 15 | * @param $file |
||
| 16 | * @return bool|mixed |
||
| 17 | * @author yangyifan <[email protected]> |
||
| 18 | */ |
||
| 19 | public static function getFileMimeType($file) |
||
| 28 | } |
||
| 29 | /** |
||
| 30 | * 获得一个临时文件 |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | * @author yangyifan <[email protected]> |
||
| 34 | */ |
||
| 35 | public static function getTmpFile() |
||
| 40 | } |
||
| 41 | /** |
||
| 42 | * 删除一个临时文件 |
||
| 43 | * |
||
| 44 | * @param $file_name |
||
| 45 | * @return bool |
||
| 46 | * @author yangyifan <[email protected]> |
||
| 47 | */ |
||
| 48 | public static function deleteTmpFile($file_name) |
||
| 51 | } |
||
| 52 | } |