diff --git a/src/DiscordAlert.php b/src/DiscordAlert.php index b6d85d8..d3ac15f 100644 --- a/src/DiscordAlert.php +++ b/src/DiscordAlert.php @@ -28,7 +28,7 @@ public function message(string $text, array $embeds = []): void $jobArguments = [ 'text' => $text, 'webhookUrl' => $webhookUrl, - 'embeds' => $embeds + 'embeds' => $embeds, ]; $job = Config::getJob($jobArguments); diff --git a/src/Jobs/SendToDiscordChannelJob.php b/src/Jobs/SendToDiscordChannelJob.php index a7f885d..1584ed0 100644 --- a/src/Jobs/SendToDiscordChannelJob.php +++ b/src/Jobs/SendToDiscordChannelJob.php @@ -34,7 +34,7 @@ public function handle(): void 'content' => $this->text, ]; - if (!blank($this->embeds)) { + if (! blank($this->embeds)) { $payload['embeds'] = $this->embeds; } diff --git a/tests/DiscordAlertsTest.php b/tests/DiscordAlertsTest.php index 7dd9d69..dc744ae 100644 --- a/tests/DiscordAlertsTest.php +++ b/tests/DiscordAlertsTest.php @@ -70,8 +70,8 @@ DiscordAlert::message('test \n data', [ [ 'title' => 'Test Embed', - 'description' => 'This is a test embed.' - ] + 'description' => 'This is a test embed.', + ], ]); Bus::assertDispatched(function (SendToDiscordChannelJob $job) {