src/Image/Gravatar.php
public function getUri()
    {
        if (empty($this->getConfig('email')) === true) {
            throw new \RuntimeException('No email specified.');
        }
        $uri = 'http://www.gravatar.com/avatar/' . md5(strtolower(trim($this->getConfig('email')))) . '.jpg';
        $args = http_build_query([
            's' => $this->getConfig('size'),
            'd' => $this->getConfig('defaultUri'),
        ]);
        if (empty($args) === false) {
            $uri .= '?' . $args;
        }
        return $uri;
    }
public function getUri()
    {
        if (empty($this->getConfig('email')) === true) {
            throw new \RuntimeException('No email specified.');
        }
        $uri = 'http://www.gravatar.com/avatar/' . md5(strtolower(trim($this->getConfig('email')))) . '.jpg';
        $args = http_build_query([
            's' => $this->getConfig('size'),
            'd' => $this->getConfig('defaultUri'),
        ]);
        if (empty($args) === false) {
            $uri .= '?' . $args;
        }
        return $uri;
    }
public function getUri ( ) { if ( empty ( $ this -> getConfig ( 'email' ) ) === true ) { throw new \ RuntimeException ( 'No email specified.' ) ; } $ uri = 'http://www.gravatar.com/avatar/' . md5 ( strtolower ( trim ( $ this -> getConfig ( 'email' ) ) ) ) . '.jpg' ; $ args = http_build_query ( [ 's' => $ this -> getConfig ( 'size' ) , 'd' => $ this -> getConfig ( 'defaultUri' ) , ] ) ; if ( empty ( $ args ) === false ) { $ uri .= '?' . $ args ; } return $ uri ; }
Get the gravatar URI.

@return string The gravatar URI.
Get the gravatar URI .