public static function iconByFileType($fileType)
    {


        foreach (self::$fileTypeIcons as $needle => $icon) {
            if (strpos($fileType, $needle) !== false) {
                return $icon;
            }
        }

        return 'file-o';
    }
public static function iconByFileType($fileType)
    {


        foreach (self::$fileTypeIcons as $needle => $icon) {
            if (strpos($fileType, $needle) !== false) {
                return $icon;
            }
        }

        return 'file-o';
    }
public static function iconByFileType ( $ fileType ) { foreach ( self :: $ fileTypeIcons as $ needle => $ icon ) { if ( strpos ( $ fileType , $ needle ) !== false ) { return $ icon ; } } return 'file-o' ; }
Selects the right font-awesome icon for each filetype

@param $fileType

@return string
Selects the right font - awesome icon for each filetype