mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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.
|
||||||
*
|
*
|
||||||
|
@@ -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()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user