| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class MimeType |
||
| 18 | { |
||
| 19 | private static $cachedDetections; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get mime type for image (best guess). |
||
| 23 | * |
||
| 24 | * It falls back to using file extension. If that fails too, false is returned |
||
| 25 | * |
||
| 26 | * @return string|false|null mimetype (if it is an image, and type could be determined / guessed), |
||
| 27 | * false (if it is not an image type that the server knowns about) |
||
| 28 | * or null (if nothing can be determined) |
||
| 29 | */ |
||
| 30 | 35 | public static function getMimeTypeDetectionResult($absFilePath) |
|
| 41 |