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

@@ -47,7 +47,7 @@ class UserFailedLoginAttempt extends Notification
$this->user = $user;
}
public function toArray(User $notifiable)
public function toArray(User $notifiable): array
{
return [
];
@@ -56,7 +56,7 @@ class UserFailedLoginAttempt extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
public function toMail(User $notifiable): MailMessage
{
$subject = (string) trans('email.failed_login_subject');
$ip = Request::ip();
@@ -91,7 +91,7 @@ class UserFailedLoginAttempt extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
public function toSlack(User $notifiable): SlackMessage
{
$message = (string) trans('email.failed_login_message', ['email' => $this->user->email]);
@@ -101,7 +101,7 @@ class UserFailedLoginAttempt extends Notification
/**
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
public function via(User $notifiable): array
{
return ReturnsAvailableChannels::returnChannels('user', $notifiable);
}