Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 89a49fd

Browse files
committed
Code style revision
1 parent 3a42624 commit 89a49fd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Multiselect.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public function getElementHtml()
5757
$this->addClass('select multiselect admin__control-multiselect');
5858
$html = '';
5959
if ($this->getCanBeEmpty()) {
60-
$html .= '<input type="hidden" id="' . $this->getHtmlId() . '_hidden" name="' . parent::getName() . '" value="" />';
60+
$html .= '
61+
<input type="hidden" id="' . $this->getHtmlId() . '_hidden" name="' . parent::getName() . '" value="" />
62+
';
6163
}
6264
if (!empty($this->_data['disabled'])) {
6365
$html .= '<input type="hidden" name="' . parent::getName() . '_disabled" value="" />';

lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/MultiselectTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public function testHiddenFieldPresentInMultiSelect()
3333
$this->_model->setId($fieldId);
3434
$elementHtml = $this->_model->getElementHtml();
3535
$this->assertContains(
36-
'<input type="hidden" id="' . $fieldId . '_hidden" name="' . $fieldName . '"', $elementHtml
36+
'<input type="hidden" id="' . $fieldId . '_hidden" name="' . $fieldName . '"',
37+
$elementHtml
3738
);
3839
}
3940

0 commit comments

Comments
 (0)