Skip to content

Commit 32b7c0f

Browse files
binarykactions-user
authored andcommitted
Fix styling
1 parent d1560de commit 32b7c0f

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/Models/MailatorSchedule.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function recipients(...$recipients): self
290290
{
291291
$this->recipients = array_merge(collect($recipients)
292292
->flatten()
293-
->filter(fn($email) => $this->ensureValidEmail($email))
293+
->filter(fn ($email) => $this->ensureValidEmail($email))
294294
->unique()
295295
->toArray(), $this->recipients ?? []);
296296

@@ -364,13 +364,13 @@ public static function run(): void
364364
static::query()
365365
->ready()
366366
->cursor()
367-
->filter(fn(self $schedule) => $schedule->shouldSend())
368-
->each(fn(self $schedule) => $schedule->execute());
367+
->filter(fn (self $schedule) => $schedule->shouldSend())
368+
->each(fn (self $schedule) => $schedule->execute());
369369
}
370370

371371
public function hasCustomAction(): bool
372372
{
373-
return !is_null($this->action);
373+
return ! is_null($this->action);
374374
}
375375

376376
public function getMailable(): ?Mailable
@@ -425,13 +425,13 @@ public function markAsFailed(string $failureReason): self
425425
public function getRecipients(): array
426426
{
427427
return collect($this->recipients)
428-
->filter(fn($email) => $this->ensureValidEmail($email))
428+
->filter(fn ($email) => $this->ensureValidEmail($email))
429429
->toArray();
430430
}
431431

432432
protected function ensureValidEmail(string $email): bool
433433
{
434-
return !Validator::make(
434+
return ! Validator::make(
435435
compact('email'),
436436
['email' => 'required|email']
437437
)->fails();
@@ -444,7 +444,7 @@ public function actionClass(Action $action): self
444444
return $this;
445445
}
446446

447-
public function tag(string|array $tag): self
447+
public function tag(string | array $tag): self
448448
{
449449
if (is_array($tag)) {
450450
$tag = implode(',', $tag);

tests/Fixtures/InvoiceReminderMailable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class InvoiceReminderMailable extends Mailable
1313

1414
public function __construct(
1515
private ?User $user = null,
16-
)
17-
{
16+
) {
1817
}
1918

2019
public function build()

0 commit comments

Comments
 (0)