Ensure coding style matches and use $this keyword within class for calling transformAvatarURL