diff --git a/src/modules/Email/Service.php b/src/modules/Email/Service.php index c5730ff10..d9e8b0b29 100644 --- a/src/modules/Email/Service.php +++ b/src/modules/Email/Service.php @@ -203,7 +203,7 @@ class Service implements \FOSSBilling\InjectionAwareInterface $systemService = $this->di['mod_service']('system'); [$subject, $content] = $this->_parse($t, $vars); - + $emailMod = $this->di['mod']('email'); $emailSettings = $emailMod->getConfig(); diff --git a/src/modules/System/Api/Guest.php b/src/modules/System/Api/Guest.php index 1b15b1da5..d3ad26fe4 100644 --- a/src/modules/System/Api/Guest.php +++ b/src/modules/System/Api/Guest.php @@ -109,8 +109,6 @@ class Guest extends \Api_Abstract /** * Return the code of the default country, if set. - * - * @return string|null */ public function default_country(): ?string { diff --git a/tests-legacy/modules/Email/ServiceTest.php b/tests-legacy/modules/Email/ServiceTest.php index bb278112e..02a3d9c54 100644 --- a/tests-legacy/modules/Email/ServiceTest.php +++ b/tests-legacy/modules/Email/ServiceTest.php @@ -363,7 +363,7 @@ class ServiceTest extends \BBTestCase ->method('getConfig') ->willReturn([ 'from_name' => '', - 'from_email' => '' + 'from_email' => '', ]); $di['db'] = $db; @@ -503,7 +503,7 @@ class ServiceTest extends \BBTestCase ->method('getConfig') ->willReturn([ 'from_name' => '', - 'from_email' => '' + 'from_email' => '', ]); $di['mod'] = $di->protect(fn () => $modMock);