protected function normalizeProtocolParameters(array $parameters)
    {
        array_walk($parameters, function (&$value, $key) {
            $value = rawurlencode($key).'="'.rawurlencode($value).'"';
        });

        return 'OAuth '.implode(', ', $parameters);
    }
protected function normalizeProtocolParameters(array $parameters)
    {
        array_walk($parameters, function (&$value, $key) {
            $value = rawurlencode($key).'="'.rawurlencode($value).'"';
        });

        return 'OAuth '.implode(', ', $parameters);
    }
protected function normalizeProtocolParameters ( array $ parameters ) { array_walk ( $ parameters , function ( & $ value , $ key ) { $ value = rawurlencode ( $ key ) . '="' . rawurlencode ( $ value ) . '"' ; } ) ; return 'OAuth ' . implode ( ', ' , $ parameters ) ; }
Takes an array of protocol parameters and normalizes them
to be used as a HTTP header.

@param array $parameters

@return string
Takes an array of protocol parameters and normalizes them to be used as a HTTP header .