| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 54 | protected function mimeType($disk, $path) | ||
| 55 |     { | ||
| 56 |         try { | ||
| 57 |             if ($disk && method_exists($disk, 'mimeType')) { | ||
| 58 | return $disk->mimeType($path) ?: false; | ||
| 59 | } | ||
| 60 |         } catch (Exception $exception) { | ||
| 61 | // Some drivers throw exceptions when checking mime types, we'll | ||
| 62 | // just fallback to `false`. | ||
| 63 | } | ||
| 64 | |||
| 65 | return false; | ||
| 66 | } | ||
| 67 | } | ||
| 68 |