1
0
Fork 0
mirror of synced 2024-10-01 17:58:02 +13:00

Linter fix

This commit is contained in:
Matej Bačo 2024-01-15 11:02:05 +00:00
parent e6c8eadc8c
commit 8668f15835
3 changed files with 3 additions and 4 deletions

View file

@ -1665,8 +1665,7 @@ App::post('/v1/projects/:projectId/smtp/tests')
$message = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-test.tpl');
$body = $message->render();
foreach($emails as $email)
{
foreach ($emails as $email) {
$queueForMails
->setSmtpHost($host)
->setSmtpPort($port)

View file

@ -97,7 +97,7 @@ class Mails extends Action
$replyTo = App::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM);
$replyToName = \urldecode(App::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server'));
if(!empty($smtp)) {
if (!empty($smtp)) {
if (!empty($smtp['replyTo'])) {
$replyTo = $smtp['replyTo'];
}

View file

@ -32,7 +32,7 @@ abstract class Scope extends TestCase
$emails = json_decode(file_get_contents('http://maildev:1080/email'), true);
if ($emails && is_array($emails)) {
if($limit === 1) {
if ($limit === 1) {
return end($emails);
} else {
$lastEmails = array_slice($emails, -1 * $limit);