| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ExifImageType extends AbstractDetector |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Try to detect mime type of image using *exif_imagetype*. |
||
| 12 | * |
||
| 13 | * Returns: |
||
| 14 | * - mime type (string) (if it is in fact an image, and type could be determined) |
||
| 15 | * - false (if it is not an image type that the server knowns about) |
||
| 16 | * - null (if nothing can be determined) |
||
| 17 | * |
||
| 18 | * @param string $filePath The path to the file |
||
| 19 | * @return string|false|null mimetype (if it is an image, and type could be determined), |
||
| 20 | * false (if it is not an image type that the server knowns about) |
||
| 21 | * or null (if nothing can be determined) |
||
| 22 | */ |
||
| 23 | 1 | protected function doDetect($filePath) |
|
| 44 |