private function buildGetUrl($url, array $query = [])
    {
        // Merge global and request queries
        $query = array_merge(
            Arr::get($this->config, 'query', []),
            $query
        );

        // Append query
        if ($query = http_build_query($query)) {
            $url .= strpos($url, '?') ? $query : "?{$query}";
        }

        return $url;
    }
private function buildGetUrl($url, array $query = [])
    {
        // Merge global and request queries
        $query = array_merge(
            Arr::get($this->config, 'query', []),
            $query
        );

        // Append query
        if ($query = http_build_query($query)) {
            $url .= strpos($url, '?') ? $query : "?{$query}";
        }

        return $url;
    }
private function buildGetUrl ( $ url , array $ query = [ ] ) { // Merge global and request queries $ query = array_merge ( Arr :: get ( $ this -> config , 'query' , [ ] ) , $ query ) ; // Append query if ( $ query = http_build_query ( $ query ) ) { $ url .= strpos ( $ url , '?' ) ? $ query : "?{$query}" ; } return $ url ; }
Build a GET request string.

@param  string $url
@param  array  $query

@return string
Build a GET request string .