Skip to content

Commit aad522d

Browse files
binarykactions-user
authored andcommitted
Fix styling
1 parent 81759c8 commit aad522d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Models/MailatorSchedule.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ public function shouldSend(): bool
328328
{
329329
try {
330330
$this->load('logs');
331+
331332
return $this->configurationsPasses() && $this->whenPasses() && $this->eventsPasses();
332-
} catch (Exception|Throwable) {
333+
} catch (Exception | Throwable) {
333334
return false;
334335
}
335336
}
@@ -352,7 +353,7 @@ public function execute(bool $now = false): void
352353
dispatch(new SendMailJob($this));
353354
}
354355
}
355-
} catch (Exception|Throwable) {
356+
} catch (Exception | Throwable) {
356357
}
357358
}
358359

tests/Feature/Console/MailatorScheduleCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ public function test_failing_during_run_dont_stop_execution(): void
2525

2626
MailatorSchedule::init('B')
2727
->constraint(new TrueConstraint)
28-
->actionClass(new CustomAction(
29-
$user = User::factory()->create([
28+
->actionClass(
29+
new CustomAction(
30+
$user = User::factory()->create([
3031
'email_verified_at' => null,
3132
])
32-
)
33+
)
3334
)
3435
->save();
3536

@@ -39,6 +40,5 @@ public function test_failing_during_run_dont_stop_execution(): void
3940
);
4041

4142
self::assertTrue($user->fresh()->hasVerifiedEmail());
42-
4343
}
4444
}

0 commit comments

Comments
 (0)