public function getGravatarUrl(
        $size = 80,
        $defaultImage = 'mm',
        $rating = 'g',
        array $attributes = []
    ) {
        $params = http_build_query([
            's' => $size,
            'd' => $defaultImage,
            'r' => $rating,
        ] + $attributes);

        return $this->getGravatarDefaultUrl() . '?' . $params;
    }
public function getGravatarUrl(
        $size = 80,
        $defaultImage = 'mm',
        $rating = 'g',
        array $attributes = []
    ) {
        $params = http_build_query([
            's' => $size,
            'd' => $defaultImage,
            'r' => $rating,
        ] + $attributes);

        return $this->getGravatarDefaultUrl() . '?' . $params;
    }
public function getGravatarUrl ( $ size = 80 , $ defaultImage = 'mm' , $ rating = 'g' , array $ attributes = [ ] ) { $ params = http_build_query ( [ 's' => $ size , 'd' => $ defaultImage , 'r' => $ rating , ] + $ attributes ) ; return $ this -> getGravatarDefaultUrl ( ) . '?' . $ params ; }
Get gravatar url

@param int $size Size in pixels, defaults to 80px [ 1 - 2048 ]
@param string $defaultImage Default image to use
- 404: do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response
- mm: (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash)
- identicon: a geometric pattern based on an email hash
- monsterid: a generated 'monster' with different colors, faces, etc
- wavatar: generated faces with differing features and backgrounds
- retro: awesome generated, 8-bit arcade-style pixelated faces
- blank: a transparent PNG image (border added to HTML below for demonstration purposes)
@param string $rating Maximum rating (inclusive)
- g: suitable for display on all websites with any audience type.
- pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
- r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use.
- x: may contain hardcore sexual imagery or extremely disturbing violence.
@param array $attributes Additional key/value attributes to include to URL
@return string
Get gravatar url