public static function getKeyAlias(array &$attr)
    {
        foreach (TagInfo::$attrKeyAliases as $alias => $key) {
            if (strpos($attr[0], $alias) === 0) {
                return compact('key', 'alias');
            }
        }

        return false;
    }
public static function getKeyAlias(array &$attr)
    {
        foreach (TagInfo::$attrKeyAliases as $alias => $key) {
            if (strpos($attr[0], $alias) === 0) {
                return compact('key', 'alias');
            }
        }

        return false;
    }
public static function getKeyAlias ( array & $ attr ) { foreach ( TagInfo :: $ attrKeyAliases as $ alias => $ key ) { if ( strpos ( $ attr [ 0 ] , $ alias ) === 0 ) { return compact ( 'key' , 'alias' ) ; } } return false ; }
Checks and applies aliases for attribute keys

For example .foo will be converted into class="foo" ("." is the alias for "class")

@param array &$attr the current attribute

@see    TagInfo::$attrKeyAliases
@return mixed alias if found, false if not
Checks and applies aliases for attribute keys