Browse Source

Fix for " redeclare"-error

Dennis 3 years ago
parent
commit
8ee876b30a
1 changed files with 10 additions and 14 deletions
  1. 10 14
      app/Notifications/WelcomeMessage.php

+ 10 - 14
app/Notifications/WelcomeMessage.php

@@ -37,18 +37,7 @@ class WelcomeMessage extends Notification implements ShouldQueue
     {
     {
         return ['database'];
         return ['database'];
     }
     }
-
-    
-
-    /**
-     * Get the array representation of the notification.
-     *
-     * @param mixed $notifiable
-     * @return array
-     */
-    public function toArray($notifiable)
-    {
-        function AdditionalLines() 
+    public function AdditionalLines() 
         {
         {
             $AdditionalLine = "";
             $AdditionalLine = "";
             if(Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_EMAIL') != 0) {
             if(Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_EMAIL') != 0) {
@@ -67,7 +56,14 @@ class WelcomeMessage extends Notification implements ShouldQueue
 
 
             return $AdditionalLine;
             return $AdditionalLine;
         }
         }
-
+    /**
+     * Get the array representation of the notification.
+     *
+     * @param mixed $notifiable
+     * @return array
+     */
+    public function toArray($notifiable)
+    {
         return [
         return [
             'title'   => "Getting started!",
             'title'   => "Getting started!",
             'content' => "
             'content' => "
@@ -75,7 +71,7 @@ class WelcomeMessage extends Notification implements ShouldQueue
                 <h5>Verification</h5>
                 <h5>Verification</h5>
                 <p>Please remember that you can verify your E-Mail Adress and Link/Verify your Discord-Account</p>
                 <p>Please remember that you can verify your E-Mail Adress and Link/Verify your Discord-Account</p>
                 <p>
                 <p>
-                    ".AdditionalLines()."
+                  ".WelcomeMessage::AdditionalLines()."
                 </p>
                 </p>
                 <h5>Information</h5>
                 <h5>Information</h5>
                 <p>This dashboard can be used to create and delete servers.<br /> These servers can be used and managed on our pterodactyl panel.<br /> If you have any questions, please join our Discord server and #create-a-ticket.</p>
                 <p>This dashboard can be used to create and delete servers.<br /> These servers can be used and managed on our pterodactyl panel.<br /> If you have any questions, please join our Discord server and #create-a-ticket.</p>