Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot 2022-06-15 13:23:08 +00:00
parent 6be8d3dd17
commit d5bcc7fcbd
No known key found for this signature in database
GPG Key ID: EEAFB12C3E6BC249
3 changed files with 16 additions and 4 deletions

View File

@ -1,10 +1,16 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Notification\Driver;
interface GroupableNotificationDriverInterface extends NotificationDriverInterface
{
/**
* Implies the delay to wait before sending out notifications to allow blueprintGrouping to happen.
*

View File

@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Notification\Job;
use Flarum\Notification\Blueprint\BlueprintInterface;
@ -23,13 +30,12 @@ class DelayedBlueprintGroupingJob extends AbstractJob
public function handle()
{
}
public function middleware()
{
return [
(new WithoutOverlapping('delayed-blueprint-grouping:' . $this->user->id))->dontRelease()
(new WithoutOverlapping('delayed-blueprint-grouping:'.$this->user->id))->dontRelease()
];
}
}

View File

@ -120,7 +120,7 @@ class NotificationSyncer
if ($driver instanceof GroupableNotificationDriverInterface) {
$delay = $driver->blueprintGroupingDelay();
foreach($newRecipients as $recipient) {
foreach ($newRecipients as $recipient) {
$job = new DelayedBlueprintGroupingJob(
$blueprint,
$recipient,