Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Jun 17, 2023
1 parent fba8c25 commit c964208
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DiscordAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/SendToDiscordChannelJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function handle(): void
'content' => $this->text,
];

if (!blank($this->embeds)) {
if (! blank($this->embeds)) {
$payload['embeds'] = $this->embeds;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/DiscordAlertsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c964208

Please sign in to comment.