src/Micrometa/Infrastructure/Factory/MicroformatsFactory.php
protected static function createLanguage(array $values, &$lang)
    {
        // If this is an alternate values list
        if (isset($values['lang'])) {
            if (is_string($values['lang'])) {
                $lang = trim($values['lang']) ?: null;
            }
            unset($values['lang']);
        }

        return $values;
    }
protected static function createLanguage(array $values, &$lang)
    {
        // If this is an alternate values list
        if (isset($values['lang'])) {
            if (is_string($values['lang'])) {
                $lang = trim($values['lang']) ?: null;
            }
            unset($values['lang']);
        }

        return $values;
    }
protected static function createLanguage ( array $ values , & $ lang ) { // If this is an alternate values list if ( isset ( $ values [ 'lang' ] ) ) { if ( is_string ( $ values [ 'lang' ] ) ) { $ lang = trim ( $ values [ 'lang' ] ) ? : null ; } unset ( $ values [ 'lang' ] ) ; } return $ values ; }
Extract a language value from a value list

@param array $values Value list
@param string $lang  Language

@return array Remaining values
Extract a language value from a value list