fix phpstan warnings

This commit is contained in:
James Cole
2025-01-03 15:53:10 +01:00
parent d95f3ca59f
commit fe4d139817
173 changed files with 374 additions and 360 deletions

View File

@@ -48,7 +48,7 @@ class DisabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(User $notifiable)
{
@@ -57,7 +57,7 @@ class DisabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -82,7 +82,7 @@ class DisabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -92,7 +92,7 @@ class DisabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -102,7 +102,7 @@ class DisabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -48,7 +48,7 @@ class EnabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(User $notifiable)
{
@@ -57,7 +57,7 @@ class EnabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -82,7 +82,7 @@ class EnabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -92,7 +92,7 @@ class EnabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -102,7 +102,7 @@ class EnabledMFANotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -50,7 +50,7 @@ class MFABackupFewLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(User $notifiable)
{
@@ -59,7 +59,7 @@ class MFABackupFewLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -84,7 +84,7 @@ class MFABackupFewLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -94,7 +94,7 @@ class MFABackupFewLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -104,7 +104,7 @@ class MFABackupFewLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -48,7 +48,7 @@ class MFABackupNoLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(User $notifiable)
{
@@ -57,7 +57,7 @@ class MFABackupNoLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -82,7 +82,7 @@ class MFABackupNoLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -92,7 +92,7 @@ class MFABackupNoLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -102,7 +102,7 @@ class MFABackupNoLeftNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -56,7 +56,7 @@ class MFAManyFailedAttemptsNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -81,7 +81,7 @@ class MFAManyFailedAttemptsNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -91,7 +91,7 @@ class MFAManyFailedAttemptsNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -101,7 +101,7 @@ class MFAManyFailedAttemptsNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -48,7 +48,7 @@ class MFAUsedBackupCodeNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(User $notifiable)
{
@@ -57,7 +57,7 @@ class MFAUsedBackupCodeNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -82,7 +82,7 @@ class MFAUsedBackupCodeNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -92,7 +92,7 @@ class MFAUsedBackupCodeNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -102,7 +102,7 @@ class MFAUsedBackupCodeNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -48,7 +48,7 @@ class NewBackupCodesNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toArray(User $notifiable)
{
@@ -57,7 +57,7 @@ class NewBackupCodesNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -82,7 +82,7 @@ class NewBackupCodesNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -92,7 +92,7 @@ class NewBackupCodesNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -102,7 +102,7 @@ class NewBackupCodesNotification extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{

View File

@@ -54,7 +54,7 @@ class UserFailedLoginAttempt extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toMail(User $notifiable)
{
@@ -79,7 +79,7 @@ class UserFailedLoginAttempt extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toPushover(User $notifiable): PushoverMessage
{
@@ -89,7 +89,7 @@ class UserFailedLoginAttempt extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function toSlack(User $notifiable)
{
@@ -99,7 +99,7 @@ class UserFailedLoginAttempt extends Notification
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
public function via(User $notifiable)
{