mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 00:50:07 +00:00
Fix code quality with rector [skip ci]
This commit is contained in:
@@ -74,23 +74,7 @@ class NotificationController extends Controller
|
||||
|
||||
return view(
|
||||
'settings.notifications.index',
|
||||
compact(
|
||||
'title',
|
||||
'subTitle',
|
||||
'forcedAvailability',
|
||||
'mainTitleIcon',
|
||||
'subTitleIcon',
|
||||
'channels',
|
||||
'slackUrl',
|
||||
'notifications',
|
||||
'pushoverAppToken',
|
||||
'pushoverUserToken',
|
||||
'ntfyServer',
|
||||
'ntfyTopic',
|
||||
'ntfyAuth',
|
||||
'ntfyUser',
|
||||
'ntfyPass'
|
||||
)
|
||||
['title' => $title, 'subTitle' => $subTitle, 'forcedAvailability' => $forcedAvailability, 'mainTitleIcon' => $mainTitleIcon, 'subTitleIcon' => $subTitleIcon, 'channels' => $channels, 'slackUrl' => $slackUrl, 'notifications' => $notifications, 'pushoverAppToken' => $pushoverAppToken, 'pushoverUserToken' => $pushoverUserToken, 'ntfyServer' => $ntfyServer, 'ntfyTopic' => $ntfyTopic, 'ntfyAuth' => $ntfyAuth, 'ntfyUser' => $ntfyUser, 'ntfyPass' => $ntfyPass]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -142,7 +126,7 @@ class NotificationController extends Controller
|
||||
case 'pushover':
|
||||
case 'ntfy':
|
||||
$owner = new OwnerNotifiable();
|
||||
app('log')->debug(sprintf('Now in testNotification("%s") controller.', $channel));
|
||||
Log::debug(sprintf('Now in testNotification("%s") controller.', $channel));
|
||||
event(new OwnerTestNotificationChannel($channel, $owner));
|
||||
session()->flash('success', (string) trans('firefly.notification_test_executed', ['channel' => $channel]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user