mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Auto commit for release 'branch-v6.2' on 2024-12-14
This commit is contained in:
@@ -38,7 +38,6 @@ class OwnerTestNotificationEmail extends Notification
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
@@ -62,7 +61,8 @@ class OwnerTestNotificationEmail extends Notification
|
||||
|
||||
return (new MailMessage())
|
||||
->markdown('emails.admin-test', ['email' => $address])
|
||||
->subject((string) trans('email.admin_test_subject'));
|
||||
->subject((string) trans('email.admin_test_subject'))
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -42,7 +42,6 @@ class OwnerTestNotificationNtfy extends Notification
|
||||
|
||||
public OwnerNotifiable $owner;
|
||||
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
@@ -50,6 +49,8 @@ class OwnerTestNotificationNtfy extends Notification
|
||||
|
||||
/**
|
||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*/
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
|
@@ -42,7 +42,6 @@ class OwnerTestNotificationPushover extends Notification
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
@@ -65,7 +64,8 @@ class OwnerTestNotificationPushover extends Notification
|
||||
Log::debug('Now in toPushover()');
|
||||
|
||||
return PushoverMessage::create((string) trans('email.admin_test_message', ['channel' => 'Pushover']))
|
||||
->title((string) trans('email.admin_test_subject'));
|
||||
->title((string) trans('email.admin_test_subject'))
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -40,7 +40,6 @@ class OwnerTestNotificationSlack extends Notification
|
||||
|
||||
private OwnerNotifiable $owner;
|
||||
|
||||
|
||||
public function __construct(OwnerNotifiable $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
@@ -38,7 +38,6 @@ class UserTestNotificationEmail extends Notification
|
||||
|
||||
private User $user;
|
||||
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
@@ -53,14 +52,14 @@ class UserTestNotificationEmail extends Notification
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
public function toMail(User $notifiable)
|
||||
{
|
||||
$address = (string) $notifiable->email;
|
||||
|
||||
return (new MailMessage())
|
||||
->markdown('emails.admin-test', ['email' => $address])
|
||||
->subject((string) trans('email.admin_test_subject'));
|
||||
->subject((string) trans('email.admin_test_subject'))
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -42,7 +42,6 @@ class UserTestNotificationNtfy extends Notification
|
||||
|
||||
public User $user;
|
||||
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
|
@@ -42,7 +42,6 @@ class UserTestNotificationPushover extends Notification
|
||||
|
||||
private User $user;
|
||||
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
@@ -65,7 +64,8 @@ class UserTestNotificationPushover extends Notification
|
||||
Log::debug('Now in (user) toPushover()');
|
||||
|
||||
return PushoverMessage::create((string) trans('email.admin_test_message', ['channel' => 'Pushover']))
|
||||
->title((string) trans('email.admin_test_subject'));
|
||||
->title((string) trans('email.admin_test_subject'))
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user