improve code style
This commit is contained in:
parent
d6a2373c31
commit
47b7e03552
@ -47,9 +47,9 @@ class SmtpChecker extends AdminDetailsController
|
||||
$activeShop = Registry::getConfig()->getActiveShop();
|
||||
|
||||
if ($localHost = Registry::getRequest()->getRequestEscapedParameter('smtpHost')) {
|
||||
list( 'host' => $shopHost, 'port' => $shopPort ) = parse_url( trim($localHost) );
|
||||
['host' => $shopHost, 'port' => $shopPort] = parse_url(trim($localHost));
|
||||
} else {
|
||||
list( 'host' => $shopHost, 'port' => $shopPort ) = parse_url( trim($activeShop->getFieldData( 'oxsmtp' )) );
|
||||
['host' => $shopHost, 'port' => $shopPort] = parse_url(trim($activeShop->getFieldData('oxsmtp')));
|
||||
}
|
||||
|
||||
$this->host = $shopHost;
|
||||
|
@ -79,7 +79,6 @@ class SpfChecker extends AdminDetailsController
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
protected function checkSpfByDomain($domain, &$summarize)
|
||||
|
@ -14,11 +14,12 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace D3\MailConfigChecker\Application\Model;
|
||||
|
||||
class SpfResult
|
||||
{
|
||||
const SET = 'set';
|
||||
const MISSING = 'missing';
|
||||
const ERROR = 'error';
|
||||
public const SET = 'set';
|
||||
public const MISSING = 'missing';
|
||||
public const ERROR = 'error';
|
||||
|
||||
protected $status;
|
||||
protected $record;
|
||||
|
Loading…
Reference in New Issue
Block a user