TwitterAPIExchange.php
private function buildBaseString($baseURI, $method, $params)
    {
        $return = array();
        ksort($params);

        foreach($params as $key => $value)
        {
            $return[] = rawurlencode($key) . '=' . rawurlencode($value);
        }

        return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $return));
    }
private function buildBaseString($baseURI, $method, $params)
    {
        $return = array();
        ksort($params);

        foreach($params as $key => $value)
        {
            $return[] = rawurlencode($key) . '=' . rawurlencode($value);
        }

        return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $return));
    }
private function buildBaseString ( $ baseURI , $ method , $ params ) { $ return = array ( ) ; ksort ( $ params ) ; foreach ( $ params as $ key => $ value ) { $ return [ ] = rawurlencode ( $ key ) . '=' . rawurlencode ( $ value ) ; } return $ method . "&" . rawurlencode ( $ baseURI ) . '&' . rawurlencode ( implode ( '&' , $ return ) ) ; }
Private method to generate the base string used by cURL

@param string $baseURI
@param string $method
@param array  $params

@return string Built base string
Private method to generate the base string used by cURL