mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 19:49:54 +00:00
Various PSR12 code cleanup
This commit is contained in:
@@ -40,12 +40,12 @@ class WebhookEventHandler
|
||||
// kick off the job!
|
||||
$messages = WebhookMessage::where('webhook_messages.sent', 0)
|
||||
//->where('webhook_messages.errored', 0)
|
||||
->get(['webhook_messages.*'])
|
||||
->filter(
|
||||
function (WebhookMessage $message) {
|
||||
return $message->webhookAttempts()->count() <= 2;
|
||||
}
|
||||
)->splice(0, 5);
|
||||
->get(['webhook_messages.*'])
|
||||
->filter(
|
||||
function (WebhookMessage $message) {
|
||||
return $message->webhookAttempts()->count() <= 2;
|
||||
}
|
||||
)->splice(0, 5);
|
||||
Log::debug(sprintf('Found %d webhook message(s) ready to be send.', $messages->count()));
|
||||
foreach ($messages as $message) {
|
||||
SendWebhookMessage::dispatch($message)->afterResponse();
|
||||
|
Reference in New Issue
Block a user