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;
|
||||
if(!$smtpEnabled) {
|
||||
if (!$smtpEnabled) {
|
||||
throw new Exception(Exception::PROJECT_SMTP_CONFIG_NOT_FOUND);
|
||||
}
|
||||
|
||||
|
|
|
@ -553,7 +553,7 @@ App::post('/v1/teams/:teamId/memberships')
|
|||
$body = Template::fromString($customTemplate['message'] ?? '');
|
||||
$subject = $customTemplate['subject'] ?? $subject;
|
||||
$from = $customTemplate['senderName'] ?? $from;
|
||||
|
||||
|
||||
$smtp = $project->getAttribute('smtp', []);
|
||||
$mails
|
||||
->setSmtpHost($smtp['host'] ?? '')
|
||||
|
|
|
@ -43,7 +43,7 @@ class MailsV1 extends Worker
|
|||
$body = Template::fromFile(__DIR__ . '/../config/locale/templates/email-base.tpl');
|
||||
|
||||
foreach ($variables as $key => $value) {
|
||||
$body->setParam('{{'.$key.'}}', $value);
|
||||
$body->setParam('{{' . $key . '}}', $value);
|
||||
}
|
||||
|
||||
$body = $body->render();
|
||||
|
|
Loading…
Reference in a new issue