From 98ddc51a4d80073240ee087cee3102499fd99d7c Mon Sep 17 00:00:00 2001 From: MaxBuhe01 Date: Sun, 18 Aug 2024 16:40:49 +0200 Subject: [PATCH] [Changed] clean code --- Modules/Core/WidgetControl.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Modules/Core/WidgetControl.php b/Modules/Core/WidgetControl.php index ce6940b..f79c6c2 100644 --- a/Modules/Core/WidgetControl.php +++ b/Modules/Core/WidgetControl.php @@ -28,19 +28,17 @@ class WidgetControl extends WidgetControl_parent{ */ $sScriptName = $_SERVER['SCRIPT_NAME']; - if($sScriptName != '/widget.php') + if($sScriptName !== '/widget.php') { return parent::getFrontendStartControllerKey(); } $aParameter = $_GET; - if(is_null($aParameter['actcontrol']) - && is_null($aParameter['actcontrol']) - && is_null($aParameter['oxwparent']) - ) + if(is_null($aParameter['actcontrol']) and is_null($aParameter['oxwparent'])) { return 'D3\GoogleAnalytics4\Application\Component\Widget\d3GtmStartWidget'; } + return parent::getFrontendStartControllerKey(); } } \ No newline at end of file