improve code style

This commit is contained in:
Daniel Seifert 2023-12-12 11:50:41 +01:00
parent d6a2373c31
commit 47b7e03552
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
6 changed files with 49 additions and 49 deletions

View File

@ -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;

View File

@ -79,7 +79,6 @@ class SpfChecker extends AdminDetailsController
)
)
);
}
protected function checkSpfByDomain($domain, &$summarize)

View File

@ -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;