Skip to content

Commit 48bd391

Browse files
committed
Convert long form tags with echo to use short-echo tags #1563
Manual short-echo tag updates for echo calls script didn't catch; sniff did though!
1 parent c03b511 commit 48bd391

File tree

22 files changed

+40
-40
lines changed

22 files changed

+40
-40
lines changed

app/code/Magento/Braintree/view/adminhtml/templates/grid/tooltip.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
/**
88
* @var \Magento\Backend\Block\Template $block
99
*/
10-
echo $block->escapeHtml($block->getData('tooltip_content'));
10+
?>
11+
<?= $block->escapeHtml($block->getData('tooltip_content'));

app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ $config = [
2121

2222
?>
2323
<div data-mage-init='<?= /* @noEscape */ json_encode($config) ?>'
24-
class="paypal checkout paypal-logo braintree-paypal-logo<?php
25-
/* @noEscape */ echo $block->getContainerId(); ?>-container">
24+
class="paypal checkout paypal-logo braintree-paypal-logo<?= /* @noEscape */ $block->getContainerId() ?>-container">
2625
<button data-currency="<?= /* @noEscape */ $block->getCurrency() ?>"
2726
data-locale="<?= /* @noEscape */ $block->getLocale() ?>"
2827
data-amount="<?= /* @noEscape */ $block->getAmount() ?>"

app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option/search.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
*/
66

77
/** @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle\Option\Search */
8-
echo $block->getChildHtml();
8+
?>
9+
<?= $block->getChildHtml();

app/code/Magento/Catalog/view/base/templates/product/price/configured_price.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $priceLabel = ($block->getPriceLabel() !== null)
1414
: '';
1515
?>
1616
<p class="price-as-configured">
17-
<?php /* @escapeNotVerified */ echo $block->renderAmount($configuredPrice->getAmount(), [
17+
<?= /* @escapeNotVerified */ $block->renderAmount($configuredPrice->getAmount(), [
1818
'display_label' => $priceLabel,
1919
'price_id' => $block->getPriceId('product-price-'),
2020
'price_type' => 'finalPrice',

app/code/Magento/Customer/view/adminhtml/templates/tab/view.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
*/
1010

1111
/** @var $block \Magento\Customer\Block\Adminhtml\Edit\Tab\View */
12-
echo $block->getChildHtml();
12+
?>
13+
<?= $block->getChildHtml();

app/code/Magento/Customer/view/frontend/templates/js/customer-data.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
/** @var \Magento\Customer\Block\CustomerData $block */
88
?>
99
<script type="text/x-magento-init">
10-
<?php
11-
/* @noEscape */ echo $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode([
10+
<?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode([
1211
'*' => ['Magento_Customer/js/customer-data' => [
1312
'sectionLoadUrl' => $block->getCustomerDataUrl('customer/section/load'),
1413
'cookieLifeTime' => $block->getCookieLifeTime(),

app/code/Magento/Customer/view/frontend/templates/js/section-config.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
/** @var \Magento\Customer\Block\SectionConfig $block */
88
?>
99
<script type="text/x-magento-init">
10-
<?php
11-
/* @noEscape */ echo $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode([
10+
<?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode([
1211
'*' => ['Magento_Customer/js/section-config' => [
1312
'sections' => $block->getSections(),
1413
'clientSideSections' => $block->getClientSideSections(),

app/code/Magento/Dhl/view/adminhtml/templates/unitofmeasure.phtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
dimensionUnit = "(<?= $block->escapeHtml($block->getCm()) ?>)";
1818
dhlUnitOfMeasureNote = "<?= $block->escapeHtml($block->getDivideOrderWeightNoteKg()) ?>";
1919
}
20-
$$('[for="carriers_dhl_height"]')[0].innerHTML = "<?php
21-
echo $block->escapeHtml($block->getHeight()); ?> " + dimensionUnit;
22-
$$('[for="carriers_dhl_depth"]')[0].innerHTML = "<?php
23-
echo $block->escapeHtml($block->getDepth()); ?> " + dimensionUnit;
24-
$$('[for="carriers_dhl_width"]')[0].innerHTML = "<?php
25-
echo $block->escapeHtml($block->getWidth()); ?> " + dimensionUnit;
20+
$$('[for="carriers_dhl_height"]')[0].innerHTML = "<?=
21+
$block->escapeHtml($block->getHeight()); ?> " + dimensionUnit;
22+
$$('[for="carriers_dhl_depth"]')[0].innerHTML = "<?=
23+
$block->escapeHtml($block->getDepth()); ?> " + dimensionUnit;
24+
$$('[for="carriers_dhl_width"]')[0].innerHTML = "<?=
25+
$block->escapeHtml($block->getWidth()); ?> " + dimensionUnit;
2626

2727
$("carriers_dhl_divide_order_weight").next().down().innerHTML = dhlUnitOfMeasureNote;
2828
}

app/code/Magento/Paypal/view/adminhtml/templates/system/config/api_wizard.phtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828

2929
<a class="action-default"
3030
data-paypal-button="true"
31-
href="<?php
32-
/* @noEscape */ echo $block->escapeUrl($block->getSandboxButtonUrl(). '?' . $block->getQuery());
33-
?>"
31+
href="<?= /* @noEscape */ $block->escapeUrl($block->getSandboxButtonUrl(). '?' . $block->getQuery()) ?>"
3432
target="PPFrame"><?= $block->escapeHtml($block->getSandboxButtonLabel()) ?></a>
3533
</div>
3634
</div>

app/code/Magento/ProductVideo/view/adminhtml/templates/product/edit/base_image.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
data-max-file-size="<?= /* @escapeNotVerified */ $fileMaxSize ?>"
2424
>
2525
<div class="image image-placeholder">
26-
<input type="file" name="image" data-url="<?php
27-
/* @escapeNotVerified */ echo $uploadUrl;?>" multiple="multiple" />
26+
<input type="file" name="image" data-url="<?= /* @escapeNotVerified */ $uploadUrl ?>" multiple="multiple" />
2827
<img class="spacer" src="<?= /* @escapeNotVerified */ $spacerImage ?>"/>
2928
<p class="image-placeholder-text"><?= /* @escapeNotVerified */ $imagePlaceholderText ?></p>
3029
</div>

0 commit comments

Comments
 (0)