Skip to content

Commit 7855732

Browse files
author
Hwashiang Yu
committed
MC-5810: Improve naming of the critical variables/parameters in the code and configuration
- Resolved test failure - Resolved static test failure
1 parent 1ba4ccd commit 7855732

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public function filterHtml(string $content): string
5454
$item->parentNode->removeChild($item);
5555
}
5656
$xpath = new \DOMXPath($dom);
57-
$htmlContentTypes = $xpath->query('//*[@data-content-type="html" and not(contains(@class, "placeholder-html-code"))]');
57+
$htmlContentTypes = $xpath->query(
58+
'//*[@data-content-type="html" and not(contains(@class, "placeholder-html-code"))]'
59+
);
5860
foreach ($htmlContentTypes as $htmlContentType) {
5961
/* @var \DOMElement $htmlContentType */
6062
$innerHTML= '';

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_config.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// */
55

66
.error-border (@color) {
7-
border: 1px solid @color;
8-
overflow: hidden;
7+
border: 1px solid @color;
8+
overflow: hidden;
99
}
1010

1111
[data-role='modal'] {

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/block/_default.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Default appearance styles
88
// _____________________________________________
99

10-
[data-content-type='block'] {
10+
[data-content-type$='block'] {
1111
.block {
1212
p:last-child {
1313
margin-bottom: 1rem;

0 commit comments

Comments
 (0)