From 4445263a7db5743ebfcf64745c0c2950a1618de2 Mon Sep 17 00:00:00 2001 From: FOSSBilling Bot <121974958+fossbilling-bot@users.noreply.github.com> Date: Wed, 17 Sep 2025 23:15:41 +0300 Subject: [PATCH] Apply PHP Code Styling & Quality Changes (#2916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: FOSSBilling Bot Co-authored-by: Yağızhan --- src/modules/Email/Service.php | 2 +- src/modules/System/Api/Guest.php | 2 -- tests-legacy/modules/Email/ServiceTest.php | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) 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);