[Changed] phpStan - set level to 3, clean files by level

This commit is contained in:
2024-01-17 15:36:43 +01:00
parent 007e83909b
commit 1c1080923b
5 changed files with 23 additions and 17 deletions

View File

@ -3,6 +3,7 @@
namespace D3\GoogleAnalytics4\Modules\Application\Controller;
use OxidEsales\Eshop\Application\Model\Country;
use OxidEsales\Eshop\Application\Model\Order;
class ThankYouController extends ThankYouController_parent
{
@ -11,7 +12,9 @@ class ThankYouController extends ThankYouController_parent
*/
public function d3GAGetUserCountry()
{
$sCountryId = $this->getOrder()->getFieldData('oxbillcountryid');
/** @var Order $oOrder */
$oOrder = $this->getOrder();
$sCountryId = $oOrder->getFieldData('oxbillcountryid');
/** @var Country $oCountry */
$oCountry = oxNew(Country::class);