protected function appendUrlQuery($url, $query)
    {
        $glue = $this->urlHasQuery($url) ? '&' : '?';

        return $url.$glue.http_build_query($query);
    }
protected function appendUrlQuery($url, $query)
    {
        $glue = $this->urlHasQuery($url) ? '&' : '?';

        return $url.$glue.http_build_query($query);
    }
protected function appendUrlQuery ( $ url , $ query ) { $ glue = $ this -> urlHasQuery ( $ url ) ? '&' : '?' ; return $ url . $ glue . http_build_query ( $ query ) ; }
Prepend URL with query string.

@param  string  $url
@param  array  $query
@return string
Prepend URL with query string .