Skip to content

Commit f353926

Browse files
committed
Refactoring the if condition
1 parent fa22418 commit f353926

File tree

1 file changed

+3
-4
lines changed
  • lib/internal/Magento/Framework/Data/Form/Element

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ public function __construct(
3737
public function getElementHtml()
3838
{
3939
$html = $this->getBold() ? '<div class="control-value special">' : '<div class="control-value">';
40-
if (is_array($this->getValue())) {
41-
$html .= '</div>';
42-
} else {
43-
$html .= $this->getEscapedValue() . '</div>';
40+
if (!is_array($this->getValue())) {
41+
$html .= $this->getEscapedValue();
4442
}
4543

44+
$html .= '</div>';
4645
$html .= $this->getAfterElementHtml();
4746

4847
return $html;

0 commit comments

Comments
 (0)