src/Gravatar.php
public static function avatar($email, $size = null)
    {
        $url = sprintf('%s/avatar/%s', self::$gravatarURL, md5($email));
        
        if (!is_null($size)) {
            $url .= '?s=' . $size;
        }
        
        return $url;
    }
public static function avatar($email, $size = null)
    {
        $url = sprintf('%s/avatar/%s', self::$gravatarURL, md5($email));
        
        if (!is_null($size)) {
            $url .= '?s=' . $size;
        }
        
        return $url;
    }
public static function avatar ( $ email , $ size = null ) { $ url = sprintf ( '%s/avatar/%s' , self :: $ gravatarURL , md5 ( $ email ) ) ; if ( ! is_null ( $ size ) ) { $ url .= '?s=' . $ size ; } return $ url ; }
Get user avatar

@param  string $email
@param  int $size
@return string
Get user avatar