mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 12:35:44 +08:00
Apply fixes from StyleCI
This commit is contained in:
parent
6be8d3dd17
commit
d5bcc7fcbd
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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()
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user