|
@@ -39,14 +39,14 @@ |
|
|
block discarded – undo |
|
39
|
39
|
* @param array $options Optional, additional key/value attributes to include |
|
40
|
40
|
* @return string Link to the user's gravatar image. |
|
41
|
41
|
*/ |
|
42
|
|
- public static function getAvatarUrl($email, $options = []) |
|
|
42
|
+ public static function getAvatarUrl($email, $options = [ ]) |
|
43
|
43
|
{ |
|
44
|
|
- $size = isset($options['s']) ? $options['s'] : 80; |
|
45
|
|
- $imageset = isset($options['d']) ? $options['d'] : 'mm'; |
|
46
|
|
- $rating = isset($options['r']) ? $options['r'] : 'g'; |
|
47
|
|
- $secure = isset($options['secure']) ? self::HTTPS_URL : self::HTTP_URL; |
|
|
44
|
+ $size = isset($options[ 's' ]) ? $options[ 's' ] : 80; |
|
|
45
|
+ $imageset = isset($options[ 'd' ]) ? $options[ 'd' ] : 'mm'; |
|
|
46
|
+ $rating = isset($options[ 'r' ]) ? $options[ 'r' ] : 'g'; |
|
|
47
|
+ $secure = isset($options[ 'secure' ]) ? self::HTTPS_URL : self::HTTP_URL; |
|
48
|
48
|
|
|
49
|
|
- return $secure . md5(strtolower(trim($email))) . '?s=' . $size .'&d=' . $imageset . '&r=' . $rating; |
|
|
49
|
+ return $secure . md5(strtolower(trim($email))) . '?s=' . $size . '&d=' . $imageset . '&r=' . $rating; |
|
50
|
50
|
} |
|
51
|
51
|
} |
|
52
|
52
|
|
Please login to merge, or discard this patch.