1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-06-15 13:23:08 +00:00
parent 6be8d3dd17
commit d5bcc7fcbd
3 changed files with 16 additions and 4 deletions

View File

@@ -1,10 +1,16 @@
<?php <?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; namespace Flarum\Notification\Driver;
interface GroupableNotificationDriverInterface extends NotificationDriverInterface interface GroupableNotificationDriverInterface extends NotificationDriverInterface
{ {
/** /**
* Implies the delay to wait before sending out notifications to allow blueprintGrouping to happen. * Implies the delay to wait before sending out notifications to allow blueprintGrouping to happen.
* *

View File

@@ -1,5 +1,12 @@
<?php <?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; namespace Flarum\Notification\Job;
use Flarum\Notification\Blueprint\BlueprintInterface; use Flarum\Notification\Blueprint\BlueprintInterface;
@@ -23,13 +30,12 @@ class DelayedBlueprintGroupingJob extends AbstractJob
public function handle() public function handle()
{ {
} }
public function middleware() public function middleware()
{ {
return [ 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) { if ($driver instanceof GroupableNotificationDriverInterface) {
$delay = $driver->blueprintGroupingDelay(); $delay = $driver->blueprintGroupingDelay();
foreach($newRecipients as $recipient) { foreach ($newRecipients as $recipient) {
$job = new DelayedBlueprintGroupingJob( $job = new DelayedBlueprintGroupingJob(
$blueprint, $blueprint,
$recipient, $recipient,