improve code
This commit is contained in:
@ -26,9 +26,9 @@ use OxidEsales\Eshop\Core\Registry;
|
||||
class MailConfigCheck extends AdminDetailsController
|
||||
{
|
||||
protected $_sThisTemplate = '@'.Constants::OXID_MODULE_ID.'/admin/mailConfigCheck';
|
||||
protected $testMailAddress = 'test@example.com';
|
||||
protected string $testMailAddress = 'test@example.com';
|
||||
|
||||
public function render()
|
||||
public function render(): string
|
||||
{
|
||||
$this->checkDataAreSet();
|
||||
$this->addTplParam('shop', Registry::getConfig()->getActiveShop());
|
||||
@ -36,7 +36,7 @@ class MailConfigCheck extends AdminDetailsController
|
||||
return parent::render();
|
||||
}
|
||||
|
||||
protected function checkDataAreSet()
|
||||
protected function checkDataAreSet(): void
|
||||
{
|
||||
try {
|
||||
/** @var Shop $shop */
|
||||
@ -64,12 +64,12 @@ class MailConfigCheck extends AdminDetailsController
|
||||
}
|
||||
}
|
||||
|
||||
public function checkConfiguration()
|
||||
public function checkConfiguration(): void
|
||||
{
|
||||
$this->getCurrentMailer();
|
||||
}
|
||||
|
||||
protected function getCurrentMailer()
|
||||
protected function getCurrentMailer(): void
|
||||
{
|
||||
try {
|
||||
$shop = Registry::getConfig()->getActiveShop();
|
||||
|
Reference in New Issue
Block a user