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