/home/techb158/immovalet.com/vendor/league/flysystem/src/Util
Edit: /home/techb158/immovalet.com/vendor/league/flysystem/src/Util/MimeType.php (1879B)
detectMimeTypeFromBuffer($content);
}
return 'text/plain';
}
/**
* Detects MIME Type based on file extension.
*
* @param string $extension
*
* @return string MIME Type
*/
public static function detectByFileExtension($extension)
{
return static::detector()->detectMimeTypeFromPath('artificial.' . $extension) ?: 'text/plain';
}
/**
* @param string $filename
*
* @return string MIME Type
*/
public static function detectByFilename($filename)
{
return static::detector()->detectMimeTypeFromPath($filename) ?: 'text/plain';
}
/**
* @return array Map of file extension to MIME Type
*/
public static function getExtensionToMimeTypeMap()
{
return static::$extensionToMimeTypeMap;
}
}