protected function createBaseString(RequestInterface $request, array $params)
    {
        // Remove query params from URL. Ref: Spec: 9.1.2.
        $url = $request->getUri()->withQuery('');
        $query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);

        return strtoupper($request->getMethod())
            . '&' . rawurlencode($url)
            . '&' . rawurlencode($query);
    }
protected function createBaseString(RequestInterface $request, array $params)
    {
        // Remove query params from URL. Ref: Spec: 9.1.2.
        $url = $request->getUri()->withQuery('');
        $query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);

        return strtoupper($request->getMethod())
            . '&' . rawurlencode($url)
            . '&' . rawurlencode($query);
    }
protected function createBaseString ( RequestInterface $ request , array $ params ) { // Remove query params from URL. Ref: Spec: 9.1.2. $ url = $ request -> getUri ( ) -> withQuery ( '' ) ; $ query = http_build_query ( $ params , '' , '&' , PHP_QUERY_RFC3986 ) ; return strtoupper ( $ request -> getMethod ( ) ) . '&' . rawurlencode ( $ url ) . '&' . rawurlencode ( $ query ) ; }
Creates the Signature Base String.

The Signature Base String is a consistent reproducible concatenation of
the request elements into a single string. The string is used as an
input in hashing or signing algorithms.

@param RequestInterface $request Request being signed
@param array            $params  Associative array of OAuth parameters

@return string Returns the base string
@link http://oauth.net/core/1.0/#sig_base_example
Creates the Signature Base String .