Completed
Push — master ( 7a0acf...84b209 )
by angel
02:14
created
src/Gravatar.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
     * @param array $options Optional, additional key/value attributes to include
43 43
     * @return string Link to the user's gravatar image.
44 44
     */
45
-    public static function getAvatarUrl($email, $options = [])
45
+    public static function getAvatarUrl($email, $options = [ ])
46 46
     {
47
-        $size       = isset($options['s']) ? $options['s'] : 80;
48
-        $imageset   = isset($options['d']) ? $options['d'] : 'mm';
49
-        $rating     = isset($options['r']) ? $options['r'] : 'g';
50
-        $secure     = isset($options['secure']) ? self::HTTPS_URL : self::HTTP_URL;
47
+        $size       = isset($options[ 's' ]) ? $options[ 's' ] : 80;
48
+        $imageset   = isset($options[ 'd' ]) ? $options[ 'd' ] : 'mm';
49
+        $rating     = isset($options[ 'r' ]) ? $options[ 'r' ] : 'g';
50
+        $secure     = isset($options[ 'secure' ]) ? self::HTTPS_URL : self::HTTP_URL;
51 51
 
52
-        return $secure . md5(strtolower(trim($email))) . '?s=' . $size .'&d=' . $imageset . '&r=' . $rating;
52
+        return $secure . md5(strtolower(trim($email))) . '?s=' . $size . '&d=' . $imageset . '&r=' . $rating;
53 53
     }  
54 54
 }
55 55
 
Please login to merge, or discard this patch.