Linter fix
This commit is contained in:
parent
e6c8eadc8c
commit
8668f15835
3 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue