Skip to content

Commit 6cbfa77

Browse files
author
Burlacu Vasilii
committed
fix code style failed tests
1 parent 7600c7c commit 6cbfa77

File tree

2 files changed

+7
-4
lines changed
  • app/code/Magento

2 files changed

+7
-4
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/labels.phtml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@
1919
<table class="admin__control-table" id="attribute-labels-table">
2020
<thead>
2121
<tr>
22-
<?php foreach ($block->getStores() as $_store) :?>
22+
<?php foreach ($block->getStores() as $_store): ?>
2323
<th class="col-store-view"><?= $block->escapeHtml($_store->getName()) ?></th>
2424
<?php endforeach; ?>
2525
</tr>
2626
</thead>
2727
<tbody>
2828
<tr>
2929
<?php $_labels = $block->getLabelValues() ?>
30-
<?php foreach ($block->getStores() as $_store) :?>
30+
<?php foreach ($block->getStores() as $_store): ?>
3131
<td class="col-store-view">
32-
<input class="input-text validate-no-html-tags<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID) :?> required-option<?php endif; ?>"
32+
<?php $isRequired = $_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID; ?>
33+
<?php $isRequiredClass = $isRequired ? 'required-option' : ''; ?>
34+
<input class="input-text validate-no-html-tags <?= /* @noEscape */ $isRequiredClass ?>"
3335
type="text"
3436
name="frontend_label[<?= $block->escapeHtmlAttr($_store->getId()) ?>]"
3537
value="<?= $block->escapeHtmlAttr($_labels[$_store->getId()]) ?>"
36-
<?php if ($block->getReadOnly()) :?>
38+
<?php if ($block->getReadOnly()): ?>
3739
disabled="disabled"
3840
<?php endif;?>/>
3941
</td>

app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ protected function _initFormValues()
283283
* Adding js block to the end of this block
284284
*
285285
* @param string $html
286+
*
286287
* @return string
287288
*/
288289
protected function _afterToHtml($html)

0 commit comments

Comments
 (0)