lib/SteamCondenser/Community/GameLeaderboard.php
public static function getLeaderboard($gameName, $id) {
        $leaderboards = self::getLeaderboards($gameName);

        if (is_int($id)) {
            if (array_key_exists($id, $leaderboards)) {
                return $leaderboards[$id];
            } else {
                return null;
            }
        } else {
            foreach(array_values($leaderboards) as $board) {
                if($board->getName() == $id) {
                    return $board;
                }
            }
        }
    }
public static function getLeaderboard($gameName, $id) {
        $leaderboards = self::getLeaderboards($gameName);

        if (is_int($id)) {
            if (array_key_exists($id, $leaderboards)) {
                return $leaderboards[$id];
            } else {
                return null;
            }
        } else {
            foreach(array_values($leaderboards) as $board) {
                if($board->getName() == $id) {
                    return $board;
                }
            }
        }
    }
Returns the leaderboard for the given game and leaderboard ID or name

@param string $gameName The short name of the game
@param mixed $id The ID or name of the leaderboard to return
@return GameLeaderboard The matching leaderboard if available