From ffdc6620224765baa1578f6def87d9503c48ec8b Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sat, 9 Dec 2023 06:41:24 +0000 Subject: [PATCH] fix formatting --- src/Appwrite/Event/Mail.php | 2 +- src/Appwrite/Platform/Workers/Mails.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Event/Mail.php b/src/Appwrite/Event/Mail.php index c283092e69..9973dae403 100644 --- a/src/Appwrite/Event/Mail.php +++ b/src/Appwrite/Event/Mail.php @@ -376,4 +376,4 @@ class Mail extends Event 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) ]); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Workers/Mails.php b/src/Appwrite/Platform/Workers/Mails.php index e8d96f098d..8c1e3c2ec8 100644 --- a/src/Appwrite/Platform/Workers/Mails.php +++ b/src/Appwrite/Platform/Workers/Mails.php @@ -61,9 +61,9 @@ class Mails extends Action $body = $payload['body']; $attachment = $payload['attachment'] ?? []; $bodyTemplate = $payload['bodyTemplate']; - if(empty($bodyTemplate)) { + if (empty($bodyTemplate)) { $bodyTemplate = __DIR__ . '/../../../../app/config/locale/templates/email-base.tpl'; - } + } $bodyTemplate = Template::fromFile($bodyTemplate); $bodyTemplate->setParam('{{body}}', $body); foreach ($variables as $key => $value) { @@ -143,4 +143,4 @@ class Mails extends Action return $mail; } -} \ No newline at end of file +}