lib/SteamCondenser/Community/GameLeaderboard.php
protected function loadData(array $params) {
        $url = $this->url;
        if (!empty($params)) {
            $url_params = [];
            foreach($params as $k => $v) {
                $url_params[] = "$k=$v";
            }
            $url .= '&' . join('&', $url_params);
        }

        $xml = new \SimpleXMLElement(file_get_contents($url));

        if (!empty($xml->error)) {
            throw new SteamCondenserException((string) $xml->error);
        }

        return $xml;
    }
protected function loadData(array $params) {
        $url = $this->url;
        if (!empty($params)) {
            $url_params = [];
            foreach($params as $k => $v) {
                $url_params[] = "$k=$v";
            }
            $url .= '&' . join('&', $url_params);
        }

        $xml = new \SimpleXMLElement(file_get_contents($url));

        if (!empty($xml->error)) {
            throw new SteamCondenserException((string) $xml->error);
        }

        return $xml;
    }
Loads leaderboard data for the given parameters

@param array $params The parameters for the leaderboard data
@return \SimpleXMLElement The requested XML Data
@throws SteamCondenserException if the XML data is marked as erroneous