src/Gravatar.php
private function buildUrl(string $resource, ?bool $secure): string
    {
        $secure = isset($secure) ? (bool) $secure : $this->secure;

        $endpoint = $secure ? self::HTTPS_ENDPOINT : self::HTTP_ENDPOINT;

        return sprintf('%s/%s', $endpoint, $resource);
    }
private function buildUrl(string $resource, ?bool $secure): string
    {
        $secure = isset($secure) ? (bool) $secure : $this->secure;

        $endpoint = $secure ? self::HTTPS_ENDPOINT : self::HTTP_ENDPOINT;

        return sprintf('%s/%s', $endpoint, $resource);
    }
private function buildUrl ( string $ resource , ? bool $ secure ) : string { $ secure = isset ( $ secure ) ? ( bool ) $ secure : $ this -> secure ; $ endpoint = $ secure ? self :: HTTPS_ENDPOINT : self :: HTTP_ENDPOINT ; return sprintf ( '%s/%s' , $ endpoint , $ resource ) ; }
Builds the URL based on the given parameters.
Builds the URL based on the given parameters .