src/WebFilesystem/WebFilesystem.php
public static function isCommonImage($file_name)
    {
        if (!self::isCommonFile($file_name) || $file_name{0}==='.' || @is_dir($file_name)) {
            return false;
        }
        $ext = self::getExtensionName($file_name);
        return ($ext ? in_array(strtolower($ext), self::$COMMON_IMG_EXTS) : false);
    }
public static function isCommonImage($file_name)
    {
        if (!self::isCommonFile($file_name) || $file_name{0}==='.' || @is_dir($file_name)) {
            return false;
        }
        $ext = self::getExtensionName($file_name);
        return ($ext ? in_array(strtolower($ext), self::$COMMON_IMG_EXTS) : false);
    }
public static function isCommonImage ( $ file_name ) { if ( ! self :: isCommonFile ( $ file_name ) || $ file_name { 0 } === '.' || @ is_dir ( $ file_name ) ) { return false ; } $ ext = self :: getExtensionName ( $ file_name ) ; return ( $ ext ? in_array ( strtolower ( $ ext ) , self :: $ COMMON_IMG_EXTS ) : false ) ; }
Tests if a file name seems to have a common image's extension

Directories (if known) or file names beginning with a dot are skipped.

@param string $file_name The file name to test
@return bool `true` if the file_name seems to be an image, `false` otherwise
Tests if a file name seems to have a common image s extension