src/Micrometa/Infrastructure/Parser/LinkType.php
protected function parseAttributeValue($profile, $attribute, $value)
    {
        // If it's a HTML attribute
        if ($profile == LinkType::HTML_PROFILE_URI) {
            switch ($attribute) {
                // Space delimited lists
                case 'sizes':
                    return array_filter(preg_split('/\040+/', $value));
                // Space or comma delimited lists
                case 'charset':
                    return array_filter(preg_split('/[,\040]+/', $value));
            }
        }

        return [$value];
    }
protected function parseAttributeValue($profile, $attribute, $value)
    {
        // If it's a HTML attribute
        if ($profile == LinkType::HTML_PROFILE_URI) {
            switch ($attribute) {
                // Space delimited lists
                case 'sizes':
                    return array_filter(preg_split('/\040+/', $value));
                // Space or comma delimited lists
                case 'charset':
                    return array_filter(preg_split('/[,\040]+/', $value));
            }
        }

        return [$value];
    }
protected function parseAttributeValue ( $ profile , $ attribute , $ value ) { // If it's a HTML attribute if ( $ profile == LinkType :: HTML_PROFILE_URI ) { switch ( $ attribute ) { // Space delimited lists case 'sizes' : return array_filter ( preg_split ( '/\040+/' , $ value ) ) ; // Space or comma delimited lists case 'charset' : return array_filter ( preg_split ( '/[,\040]+/' , $ value ) ) ; } } return [ $ value ] ; }
Parse an attribute value

@param string $profile   Profile
@param string $attribute Attribute name
@param string $value     Attribute value

@return array Attribute values
Parse an attribute value