Skip to content

Commit fb9d864

Browse files
committed
fixed phpcs issues
1 parent 1d62470 commit fb9d864

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Meta/Conversion/view/frontend/templates/pixel/view_content.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ if ($block->getFacebookPixelID()) {
1212
"*": {
1313
"Meta_Conversion/js/metaPixelTracker" : {
1414
"url" : "<?= $block->escapeJs($trackerUrl); ?>",
15-
"payload": <?= json_encode([
15+
"payload": <?= $block->escapeJs(json_encode([
1616
"eventName" => $block->getEventToObserveName(),
1717
"productId" => $block->getProductId()
18-
]) ?>,
19-
"browserEventData": <?= json_encode([
18+
])) ?>,
19+
"browserEventData": <?= $block->escapeJs(json_encode([
2020
'fbAgentVersion' => $block->getFacebookAgentVersion(),
2121
'fbPixelId' => $block->getFacebookPixelID(),
2222
'source' => $block->getSource(),
@@ -31,7 +31,7 @@ if ($block->getFacebookPixelID()) {
3131
'value' => $block->getValue() ?? '',
3232
'currency' => $block->getCurrency() ?? ''
3333
]
34-
]) ?>
34+
])) ?>
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)