protected function normalizeKey($key)
    {
        if ($this->normalization & static::NORMALIZE_TRIM) {
            $key = trim($key);
        }

        if ($this->normalization & static::NORMALIZE_DELIMITERS) {
            $key = static::normalizeKeyDelimiters($key);
        }

        if ($this->normalization & static::NORMALIZE_CASE) {
            $key = strtolower($key);
        }

        if ($this->normalization & static::NORMALIZE_CANONICAL) {
            $key = static::canonicalizeKey($key);
        }

        return $key;
    }
protected function normalizeKey($key)
    {
        if ($this->normalization & static::NORMALIZE_TRIM) {
            $key = trim($key);
        }

        if ($this->normalization & static::NORMALIZE_DELIMITERS) {
            $key = static::normalizeKeyDelimiters($key);
        }

        if ($this->normalization & static::NORMALIZE_CASE) {
            $key = strtolower($key);
        }

        if ($this->normalization & static::NORMALIZE_CANONICAL) {
            $key = static::canonicalizeKey($key);
        }

        return $key;
    }
protected function normalizeKey ( $ key ) { if ( $ this -> normalization & static :: NORMALIZE_TRIM ) { $ key = trim ( $ key ) ; } if ( $ this -> normalization & static :: NORMALIZE_DELIMITERS ) { $ key = static :: normalizeKeyDelimiters ( $ key ) ; } if ( $ this -> normalization & static :: NORMALIZE_CASE ) { $ key = strtolower ( $ key ) ; } if ( $ this -> normalization & static :: NORMALIZE_CANONICAL ) { $ key = static :: canonicalizeKey ( $ key ) ; } return $ key ; }
Normalize a header key based on our set normalization style

@param string $key The ("field") key of the header
@return string
Normalize a header key based on our set normalization style