Sfoglia il codice sorgente

Beautify as AVMG wishes spacespacespaceenter

Dennis 3 anni fa
parent
commit
6325cd8f87
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      app/Models/User.php

+ 3 - 2
app/Models/User.php

@@ -213,11 +213,12 @@ class User extends Authenticatable implements MustVerifyEmail
      */
     public function getAvatar()
     {
-        if ($this->discordUser()->exists()){
+        if ($this->discordUser()->exists()) {
             $avatar = $this->discordUser->getAvatar();
-        }else{
+        } else {
             $avatar = "https://www.gravatar.com/avatar/" . md5(strtolower(trim($this->email)));
         }
+        
         return $avatar;
     }