mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Various phpstan fixes [skip ci]
This commit is contained in:
@@ -46,12 +46,10 @@ class UserInvitation extends Notification
|
||||
use Queueable;
|
||||
|
||||
private InvitedUser $invitee;
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
public function __construct(OwnerNotifiable $owner, InvitedUser $invitee)
|
||||
public function __construct(InvitedUser $invitee)
|
||||
{
|
||||
$this->invitee = $invitee;
|
||||
$this->owner = $owner;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,13 +45,11 @@ class UserRegistration extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
private User $user;
|
||||
|
||||
public function __construct(OwnerNotifiable $owner, User $user)
|
||||
public function __construct( User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->owner = $owner;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -36,13 +36,6 @@ class OwnerTestNotificationEmail extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
@@ -40,13 +40,6 @@ class OwnerTestNotificationNtfy extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public OwnerNotifiable $owner;
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*
|
||||
|
||||
@@ -40,13 +40,6 @@ class OwnerTestNotificationPushover extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
@@ -38,13 +38,6 @@ class OwnerTestNotificationSlack extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
@@ -36,13 +36,6 @@ class UserTestNotificationEmail extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private User $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
@@ -40,13 +40,6 @@ class UserTestNotificationNtfy extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public User $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
@@ -40,13 +40,6 @@ class UserTestNotificationPushover extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private User $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
@@ -38,13 +38,6 @@ class UserTestNotificationSlack extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private User $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user