@@ -56,9 +56,9 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | <div class="section" id="mail_general_settings"> |
| 58 | 58 | <form id="mail_general_settings_form" class="mail_settings"> |
| 59 | - <h2><?php p($l->t('Email server'));?></h2> |
|
| 59 | + <h2><?php p($l->t('Email server')); ?></h2> |
|
| 60 | 60 | <a target="_blank" rel="noreferrer noopener" class="icon-info" |
| 61 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 61 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 62 | 62 | href="<?php p(link_to_docs('admin-email')); ?>"></a> |
| 63 | 63 | <p class="settings-hint"><?php p($l->t('It is important to set up this server to be able to send emails, like for password reset and notifications.')); ?></p> |
| 64 | 64 | <p><span id="mail_settings_msg" class="msg"></span></p> |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $selected = 'selected="selected"'; |
| 73 | 73 | endif; ?> |
| 74 | 74 | <option value="<?php p($smtpmode[0])?>" <?php p($selected) ?>><?php p($smtpmode[1]) ?></option> |
| 75 | - <?php endforeach;?> |
|
| 75 | + <?php endforeach; ?> |
|
| 76 | 76 | </select> |
| 77 | 77 | |
| 78 | 78 | <label id="mail_smtpsecure_label" for="mail_smtpsecure" |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $selected = 'selected="selected"'; |
| 88 | 88 | endif; ?> |
| 89 | 89 | <option value="<?php p($secure)?>" <?php p($selected) ?>><?php p($name) ?></option> |
| 90 | - <?php endforeach;?> |
|
| 90 | + <?php endforeach; ?> |
|
| 91 | 91 | </select> |
| 92 | 92 | |
| 93 | 93 | <label id="mail_sendmailmode_label" for="mail_sendmailmode" class="<?= $_['mail_smtpmode'] !== 'sendmail' ? 'hidden' : '' ?>"> |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | <select name="mail_sendmailmode" id="mail_sendmailmode" class="<?= $_['mail_smtpmode'] !== 'sendmail' ? 'hidden' : '' ?>"> |
| 97 | 97 | <?php foreach ($mail_sendmailmode as $sendmailmodeValue => $sendmailmodeLabel): ?> |
| 98 | 98 | <option value="<?php p($sendmailmodeValue)?>" <?= $sendmailmodeValue === $_['mail_sendmailmode'] ? 'selected="selected"' : '' ?>><?php p($sendmailmodeLabel) ?></option> |
| 99 | - <?php endforeach;?> |
|
| 99 | + <?php endforeach; ?> |
|
| 100 | 100 | </select> |
| 101 | 101 | </p> |
| 102 | 102 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $selected = 'selected="selected"'; |
| 118 | 118 | endif; ?> |
| 119 | 119 | <option value="<?php p($authtype)?>" <?php p($selected) ?>><?php p($name) ?></option> |
| 120 | - <?php endforeach;?> |
|
| 120 | + <?php endforeach; ?> |
|
| 121 | 121 | </select> |
| 122 | 122 | |
| 123 | 123 | <input type="checkbox" name="mail_smtpauth" id="mail_smtpauth" class="checkbox" value="1" |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $mailer = $this->getInstance(); |
| 173 | 173 | |
| 174 | 174 | // Enable logger if debug mode is enabled |
| 175 | - if($debugMode) { |
|
| 175 | + if ($debugMode) { |
|
| 176 | 176 | $mailLogger = new \Swift_Plugins_Loggers_ArrayLogger(); |
| 177 | 177 | $mailer->registerPlugin(new \Swift_Plugins_LoggerPlugin($mailLogger)); |
| 178 | 178 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | // Debugging logging |
| 183 | 183 | $logMessage = sprintf('Sent mail to "%s" with subject "%s"', print_r($message->getTo(), true), $message->getSubject()); |
| 184 | 184 | $this->logger->debug($logMessage, ['app' => 'core']); |
| 185 | - if($debugMode && isset($mailLogger)) { |
|
| 185 | + if ($debugMode && isset($mailLogger)) { |
|
| 186 | 186 | $this->logger->debug($mailLogger->dump(), ['app' => 'core']); |
| 187 | 187 | } |
| 188 | 188 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | list($name, $domain) = explode('@', $email, 2); |
| 219 | - $domain = idn_to_ascii($domain, 0,INTL_IDNA_VARIANT_UTS46); |
|
| 219 | + $domain = idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46); |
|
| 220 | 220 | return $name.'@'.$domain; |
| 221 | 221 | } |
| 222 | 222 | |
@@ -291,6 +291,6 @@ discard block |
||
| 291 | 291 | break; |
| 292 | 292 | } |
| 293 | 293 | |
| 294 | - return new \Swift_SendmailTransport($binaryPath . $binaryParam); |
|
| 294 | + return new \Swift_SendmailTransport($binaryPath.$binaryParam); |
|
| 295 | 295 | } |
| 296 | 296 | } |