src/Symbb/Core/UserBundle/GravatarApi.php
public function getUrlForHash($hash, $size = null, $rating = null, $default = null, $secure = null)
    {
        $map = array(
            's' => $size ?: $this->defaults['size'],
            'r' => $rating ?: $this->defaults['rating'],
            'd' => $default ?: $this->defaults['default'],
        );

        if (null === $secure) {
            $secure = $this->defaults['secure'];
        }

        return ($secure ? 'https://secure' : 'http://www') . '.gravatar.com/avatar/' . $hash . '?' . http_build_query(array_filter($map));
    }
public function getUrlForHash($hash, $size = null, $rating = null, $default = null, $secure = null)
    {
        $map = array(
            's' => $size ?: $this->defaults['size'],
            'r' => $rating ?: $this->defaults['rating'],
            'd' => $default ?: $this->defaults['default'],
        );

        if (null === $secure) {
            $secure = $this->defaults['secure'];
        }

        return ($secure ? 'https://secure' : 'http://www') . '.gravatar.com/avatar/' . $hash . '?' . http_build_query(array_filter($map));
    }
public function getUrlForHash ( $ hash , $ size = null , $ rating = null , $ default = null , $ secure = null ) { $ map = array ( 's' => $ size ? : $ this -> defaults [ 'size' ] , 'r' => $ rating ? : $ this -> defaults [ 'rating' ] , 'd' => $ default ? : $ this -> defaults [ 'default' ] , ) ; if ( null === $ secure ) { $ secure = $ this -> defaults [ 'secure' ] ; } return ( $ secure ? 'https://secure' : 'http://www' ) . '.gravatar.com/avatar/' . $ hash . '?' . http_build_query ( array_filter ( $ map ) ) ; }
Returns a url for a gravatar for the given hash.

@param  string $hash
@param  integer $size
@param  string $rating
@param  string $default
@param  Boolean $secure
@return string
Returns a url for a gravatar for the given hash .