Storage::getContentType() 메소드를 MIME 클래스로 이동함

This commit is contained in:
Kijin Sung 2019-10-09 15:20:19 +09:00
parent 9163bc24e9
commit 805a7324cc
4 changed files with 36 additions and 36 deletions

View file

@ -15,7 +15,7 @@ class Image
*/
public static function isImage($filename)
{
return array_shift(explode('/', Storage::getContentType($filename))) === 'image';
return array_shift(explode('/', MIME::getContentType($filename))) === 'image';
}
/**
@ -26,7 +26,7 @@ class Image
*/
public static function isAnimatedGIF($filename)
{
if (Storage::getContentType($filename) !== 'image/gif')
if (MIME::getContentType($filename) !== 'image/gif')
{
return false;
}