Fix styling

This commit is contained in:
Thijmen
2024-06-10 20:43:34 +00:00
committed by github-actions[bot]
parent 41fb6a1fc9
commit d86274cc37
429 changed files with 5307 additions and 2831 deletions

View File

@@ -15,12 +15,13 @@ class TransactionalEmailChannel
public function send(User $notifiable, Notification $notification): void
{
$settings = InstanceSettings::get();
if (!data_get($settings, 'smtp_enabled') && !data_get($settings, 'resend_enabled')) {
if (! data_get($settings, 'smtp_enabled') && ! data_get($settings, 'resend_enabled')) {
Log::info('SMTP/Resend not enabled');
return;
}
$email = $notifiable->email;
if (!$email) {
if (! $email) {
return;
}
$this->bootConfigs();
@@ -31,14 +32,14 @@ class TransactionalEmailChannel
fn (Message $message) => $message
->to($email)
->subject($mailMessage->subject)
->html((string)$mailMessage->render())
->html((string) $mailMessage->render())
);
}
private function bootConfigs(): void
{
$type = set_transanctional_email_settings();
if (!$type) {
if (! $type) {
throw new Exception('No email settings found.');
}
}