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