Run Linter
This commit is contained in:
parent
11dca76a70
commit
88d48715c5
3 changed files with 3 additions and 3 deletions
|
@ -1734,7 +1734,7 @@ App::patch('/v1/projects/:projectId/templates/email/:type/:locale')
|
||||||
}
|
}
|
||||||
|
|
||||||
$smtpEnabled = $project->getAttribute('smtp', [])['enabled'] ?? false;
|
$smtpEnabled = $project->getAttribute('smtp', [])['enabled'] ?? false;
|
||||||
if(!$smtpEnabled) {
|
if (!$smtpEnabled) {
|
||||||
throw new Exception(Exception::PROJECT_SMTP_CONFIG_NOT_FOUND);
|
throw new Exception(Exception::PROJECT_SMTP_CONFIG_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class MailsV1 extends Worker
|
||||||
$body = Template::fromFile(__DIR__ . '/../config/locale/templates/email-base.tpl');
|
$body = Template::fromFile(__DIR__ . '/../config/locale/templates/email-base.tpl');
|
||||||
|
|
||||||
foreach ($variables as $key => $value) {
|
foreach ($variables as $key => $value) {
|
||||||
$body->setParam('{{'.$key.'}}', $value);
|
$body->setParam('{{' . $key . '}}', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
$body = $body->render();
|
$body = $body->render();
|
||||||
|
|
Loading…
Reference in a new issue