src/Pond/Tunes/Lookup.php
protected function buildSpecificRequestUri()
    {
        $requestParameters = array();

        // trigger parent::_buildRequestUri
        $uri = parent::buildRequestUri();
        if (!empty($uri)) {
            $requestParameters[] = $uri;
        }

        if ($this->lookupId === 0 XOR !empty($this->amgArtistIds)) {
            throw new \LogicException('There is no lookupId or amgArtistId set.');
        }

        // add lookupId
        if ($this->lookupId > 0) {
            $requestParameters[] = 'id=' . $this->lookupId;
        }

        // add amgArtistIds if present
        if (!empty($this->amgArtistIds)) {
            $requestParameters[] = 'amgArtistId=' . implode(',', $this->amgArtistIds);
        }

        // build request parameter string
        $request = implode('&', $requestParameters);

        $this->rawRequestUrl = $this->getUri() . $request;
    }
protected function buildSpecificRequestUri()
    {
        $requestParameters = array();

        // trigger parent::_buildRequestUri
        $uri = parent::buildRequestUri();
        if (!empty($uri)) {
            $requestParameters[] = $uri;
        }

        if ($this->lookupId === 0 XOR !empty($this->amgArtistIds)) {
            throw new \LogicException('There is no lookupId or amgArtistId set.');
        }

        // add lookupId
        if ($this->lookupId > 0) {
            $requestParameters[] = 'id=' . $this->lookupId;
        }

        // add amgArtistIds if present
        if (!empty($this->amgArtistIds)) {
            $requestParameters[] = 'amgArtistId=' . implode(',', $this->amgArtistIds);
        }

        // build request parameter string
        $request = implode('&', $requestParameters);

        $this->rawRequestUrl = $this->getUri() . $request;
    }
{@inheritDoc}