Skip to content

Commit 1dc15ab

Browse files
committed
MC-16607: Fix Unrelated Static Test Failures
- fix static
1 parent a336aff commit 1dc15ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/PageBuilder/Plugin/Filter/TemplatePlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ private function generateDecodedHtmlPlaceholderMappingInDocument(\DOMDocument $d
235235
$preDecodedOuterHtml = $document->saveHTML($htmlContentTypeNode);
236236

237237
// clear empty <div> wrapper around outerHTML to replace with $clonedHtmlContentTypeNode
238+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
238239
$decodedInnerHtml = preg_replace('#^<[^>]*>|</[^>]*>$#', '', html_entity_decode($preDecodedOuterHtml));
239240

240241
// Use $clonedHtmlContentTypeNode's placeholder to inject decoded inner html
@@ -268,6 +269,7 @@ private function generateBackgroundImageStyles(\DOMDocument $document) : void
268269
$backgroundImages = $node->attributes->getNamedItem('data-background-images');
269270
if ($backgroundImages->nodeValue !== '') {
270271
$elementClass = uniqid('background-image-');
272+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
271273
$images = json_decode(stripslashes($backgroundImages->nodeValue), true);
272274
if (count($images) > 0) {
273275
$style = $xpath->document->createElement(

0 commit comments

Comments
 (0)