Made it to level 6!

This commit is contained in:
James Cole
2025-01-04 15:16:11 +01:00
parent 54d0433dd4
commit 5602715c96
35 changed files with 99 additions and 103 deletions

View File

@@ -55,7 +55,7 @@ class UserRegistration extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(OwnerNotifiable $notifiable)
public function toArray(OwnerNotifiable $notifiable): array
{
return [
];
@@ -64,7 +64,7 @@ class UserRegistration extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(OwnerNotifiable $notifiable)
public function toMail(OwnerNotifiable $notifiable): MailMessage
{
$ip = Request::ip();
$host = Steam::getHostName($ip);
@@ -107,7 +107,7 @@ class UserRegistration extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(OwnerNotifiable $notifiable)
public function toSlack(OwnerNotifiable $notifiable): SlackMessage
{
return new SlackMessage()->content((string) trans('email.admin_new_user_registered', ['email' => $this->user->email, 'id' => $this->user->id]));
}
@@ -115,7 +115,7 @@ class UserRegistration extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(OwnerNotifiable $notifiable)
public function via(OwnerNotifiable $notifiable): array
{
return ReturnsAvailableChannels::returnChannels('owner');
}