src/Provider/AbstractProvider.php
protected function appendQuery($url, $query)
    {
        $query = trim($query, '?&');

        if ($query) {
            $glue = strstr($url, '?') === false ? '?' : '&';
            return $url . $glue . $query;
        }

        return $url;
    }
protected function appendQuery($url, $query)
    {
        $query = trim($query, '?&');

        if ($query) {
            $glue = strstr($url, '?') === false ? '?' : '&';
            return $url . $glue . $query;
        }

        return $url;
    }
protected function appendQuery ( $ url , $ query ) { $ query = trim ( $ query , '?&' ) ; if ( $ query ) { $ glue = strstr ( $ url , '?' ) === false ? '?' : '&' ; return $ url . $ glue . $ query ; } return $ url ; }
Appends a query string to a URL.

@param  string $url The URL to append the query to
@param  string $query The HTTP query string
@return string The resulting URL
Appends a query string to a URL .