protected function buildUrl($type = 'email', $value)
    {
        $type = trim(strtolower($type));

        if (! in_array($type, ['ip', 'email', 'username'])) {
            throw new \InvalidArgumentException('Type of '.$type.' is not supported by the API');
        }

        $url = $this->apiUrl.'?'.$type.'='.urlencode($value).'&f=json';

        return $url;
    }
protected function buildUrl($type = 'email', $value)
    {
        $type = trim(strtolower($type));

        if (! in_array($type, ['ip', 'email', 'username'])) {
            throw new \InvalidArgumentException('Type of '.$type.' is not supported by the API');
        }

        $url = $this->apiUrl.'?'.$type.'='.urlencode($value).'&f=json';

        return $url;
    }
protected function buildUrl ( $ type = 'email' , $ value ) { $ type = trim ( strtolower ( $ type ) ) ; if ( ! in_array ( $ type , [ 'ip' , 'email' , 'username' ] ) ) { throw new \ InvalidArgumentException ( 'Type of ' . $ type . ' is not supported by the API' ) ; } $ url = $ this -> apiUrl . '?' . $ type . '=' . urlencode ( $ value ) . '&f=json' ; return $ url ; }
Builds the URL for the spam check with given type email|ip|username and value for it,
return full api url.

@param string $type
@param        $value
@return string
Builds the URL for the spam check with given type email|ip|username and value for it return full api url .