File tree Expand file tree Collapse file tree 4 files changed +9
-11
lines changed
Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ private function generateVariable(
301301 string $ containerId ,
302302 string $ timestamp ,
303303 string $ storeId = null
304- ): array {
304+ ): array {
305305 return [
306306 [
307307 'accountId ' => $ accountId ,
Original file line number Diff line number Diff line change @@ -40,15 +40,14 @@ public function __construct(
4040 */
4141 public function afterGetSectionData (
4242 \Magento \Customer \CustomerData \Customer $ subject ,
43- $ result
44- )
45- {
46- if ($ this ->config ->isEnabled ()){
43+ $ result
44+ ) {
45+ if ($ this ->config ->isEnabled ()) {
4746 if ($ this ->session ->getCustomerId ()) {
4847 $ result ['mf_gtm_customer_identifier ' ] = hash ('sha256 ' , (string )$ this ->session ->getCustomer ()->getEmail ());
4948 }
5049 }
5150
5251 return $ result ;
5352 }
54- }
53+ }
Original file line number Diff line number Diff line change 44
55use Magento \Framework \App \Config \ScopeConfigInterface ;
66use Magefan \GoogleTagManager \Model \Config ;
7+
78class ScopeConfig
89{
910 /**
@@ -27,8 +28,7 @@ class ScopeConfig
2728 */
2829 public function __construct (
2930 Config $ config
30- )
31- {
31+ ) {
3232 $ this ->config = $ config ;
3333 }
3434
@@ -46,8 +46,7 @@ public function afterGetValue(
4646 $ path ,
4747 $ scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT ,
4848 $ scopeCode = null
49- )
50- {
49+ ) {
5150 if (in_array ($ path , self ::PATHS )) {
5251 if ($ this ->config ->isEnabled () && !$ this ->config ->isThirdPartyGaEnabled ()) {
5352 $ result = '0 ' ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if (!isset($escaper)) {
5959 mfLoadGtm();
6060 <?php } ?>
6161
62- <?php if ($ this ->isCookieRestrictionModeEnabled ()) { ?>
62+ <?php if ($ block ->isCookieRestrictionModeEnabled ()) { ?>
6363 (function () {
6464 function getCookieValue(cookieName) {
6565 let name = cookieName + '=';
You can’t perform that action at this time.
0 commit comments