public function avatar($options = [])
    {
        $options = (array)$options;
        $options += [
            's' => 80,
            'd' => 'mm',
            'r' => 'g'
        ];

        $url = 'http://www.gravatar.com/avatar/';
        $url .= md5(strtolower(trim($this->get('email'))));
        $url .= "?s={$options['s']}&d={$options['d']}&r={$options['r']}";

        return $url;
    }
public function avatar($options = [])
    {
        $options = (array)$options;
        $options += [
            's' => 80,
            'd' => 'mm',
            'r' => 'g'
        ];

        $url = 'http://www.gravatar.com/avatar/';
        $url .= md5(strtolower(trim($this->get('email'))));
        $url .= "?s={$options['s']}&d={$options['d']}&r={$options['r']}";

        return $url;
    }
public function avatar ( $ options = [ ] ) { $ options = ( array ) $ options ; $ options += [ 's' => 80 , 'd' => 'mm' , 'r' => 'g' ] ; $ url = 'http://www.gravatar.com/avatar/' ; $ url .= md5 ( strtolower ( trim ( $ this -> get ( 'email' ) ) ) ) ; $ url .= "?s={$options['s']}&d={$options['d']}&r={$options['r']}" ; return $ url ; }
Gets user avatar image's URL.

Powered by Gravatar, it uses user's email to get avatar image URL from
Gravatar service.

Use this method instead of `avatar` property when you need to customize
avatar's parameters such as `size`, etc.

```php
$user->avatar(['s' => 150]); // instead of: $user->avatar;
```

@param array $options Array of options for Gravatar API
@return string URL to user's avatar
@link http://www.gravatar.com
Gets user avatar image s URL .