Skip to content

Commit 8c24779

Browse files
committed
Comply with phpstan for PS 1.6
1 parent b3adf43 commit 8c24779

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

classes/Hook/HookDisplayBackOfficeHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(Ps_Googleanalytics $module, Context $context)
4949
public function run()
5050
{
5151
if (Configuration::get('GA_TRACK_BACKOFFICE_DISABLED')) {
52-
return;
52+
return '';
5353
}
5454

5555
$js = '';

classes/Hook/HookDisplayHeader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public function __construct(Ps_Googleanalytics $module, Context $context)
4747
public function run()
4848
{
4949
if (!Configuration::get('GA_ACCOUNT_ID')) {
50-
return;
50+
return '';
5151
}
5252

5353
if (Configuration::get('GA_TRACK_BACKOFFICE_DISABLED') && $this->backOffice) {
54-
return;
54+
return '';
5555
}
5656

5757
$this->context->controller->addJs($this->module->getPathUri() . 'views/js/GoogleAnalyticActionLib.js');

0 commit comments

Comments
 (0)