Fix for " redeclare"-error

This commit is contained in:
Dennis 2021-10-26 14:13:42 +02:00 committed by GitHub
parent 1e987bbbbc
commit 8ee876b30a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,18 +37,7 @@ class WelcomeMessage extends Notification implements ShouldQueue
{ {
return ['database']; return ['database'];
} }
public function AdditionalLines()
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
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>