/** * Return the URL with the avatar from the User * * @param integer $size * @return string */ public function getAvatar($size = self::AVATAR_SIZE_DEFAULT) { $avatar = $this->getImage(self::KEY_AVATAR, $size, $size); if (empty($avatar)) { return Utils::getUrlAvatarDefault($size); } return $avatar; }