Skip to content

Commit 0e70602

Browse files
committed
- Fixed identation violations
1 parent 2f7131c commit 0e70602

File tree

2 files changed

+23
-32
lines changed

2 files changed

+23
-32
lines changed

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

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ protected function _getPluginButtonsHtml($visible = true)
260260
$buttonsHtml .= $this->_getButtonHtml(
261261
[
262262
'title' => $this->translate('Insert Widget...'),
263-
'onclick' => "widgetTools.openDialog('" . $this->getConfig(
264-
'widget_window_url'
265-
) . "widget_target_id/" . $this->getHtmlId() . "')",
263+
'onclick' => "widgetTools.openDialog('"
264+
. $this->getConfig('widget_window_url')
265+
. "widget_target_id/" . $this->getHtmlId() . "')",
266266
'class' => 'action-add-widget plugin',
267267
'style' => $visible ? '' : 'display:none',
268268
]
@@ -274,13 +274,12 @@ protected function _getPluginButtonsHtml($visible = true)
274274
$buttonsHtml .= $this->_getButtonHtml(
275275
[
276276
'title' => $this->translate('Insert Image...'),
277-
'onclick' => "MediabrowserUtility.openDialog('" . $this->getConfig(
278-
'files_browser_window_url'
279-
) . "target_element_id/" . $this->getHtmlId() . "/" . (null !== $this->getConfig(
280-
'store_id'
281-
) ? 'store/' . $this->getConfig(
282-
'store_id'
283-
) . '/' : '') . "')",
277+
'onclick' => "MediabrowserUtility.openDialog('"
278+
. $this->getConfig('files_browser_window_url')
279+
. "target_element_id/" . $this->getHtmlId() . "/"
280+
. (null !== $this->getConfig('store_id') ? 'store/'
281+
. $this->getConfig('store_id') . '/' : '')
282+
. "')",
284283
'class' => 'action-add-image plugin',
285284
'style' => $visible ? '' : 'display:none',
286285
]
@@ -395,13 +394,11 @@ protected function _wrapIntoContainer($html)
395394
return '<div class="admin__control-wysiwig">' .$html . '</div>';
396395
}
397396

398-
$html = '<div id="editor' . $this->getHtmlId() . '"' . ($this->getConfig(
399-
'no_display'
400-
) ? ' style="display:none;"' : '') . ($this->getConfig(
401-
'container_class'
402-
) ? ' class="admin__control-wysiwig ' . $this->getConfig(
403-
'container_class'
404-
) . '"' : '') . '>' . $html . '</div>';
397+
$html = '<div id="editor' . $this->getHtmlId() . '"'
398+
. ($this->getConfig('no_display') ? ' style="display:none;"' : '')
399+
. ($this->getConfig('container_class') ? ' class="admin__control-wysiwig '
400+
. $this->getConfig('container_class') . '"' : '')
401+
. '>' . $html . '</div>';
405402

406403
return $html;
407404
}

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

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,35 +66,29 @@ public function getElementHtml()
6666
}
6767

6868
$html = '<input type="hidden" id="' . $this->getHtmlId() . '" ' . $this->_getUiId() . '/>';
69-
$html .= '<select name="' . $this->getName() . '" style="width:80px" ' . $this->serialize(
70-
$this->getHtmlAttributes()
71-
) . $this->_getUiId(
72-
'hour'
73-
) . '>' . "\n";
69+
$html .= '<select name="' . $this->getName() . '" style="width:80px" '
70+
. $this->serialize($this->getHtmlAttributes())
71+
. $this->_getUiId('hour') . '>' . "\n";
7472
for ($i = 0; $i < 24; $i++) {
7573
$hour = str_pad($i, 2, '0', STR_PAD_LEFT);
7674
$html .= '<option value="' . $hour . '" ' . ($valueHrs ==
7775
$i ? 'selected="selected"' : '') . '>' . $hour . '</option>';
7876
}
7977
$html .= '</select>' . "\n";
8078

81-
$html .= ':&nbsp;<select name="' . $this->getName() . '" style="width:80px" ' . $this->serialize(
82-
$this->getHtmlAttributes()
83-
) . $this->_getUiId(
84-
'minute'
85-
) . '>' . "\n";
79+
$html .= ':&nbsp;<select name="' . $this->getName() . '" style="width:80px" '
80+
. $this->serialize($this->getHtmlAttributes())
81+
. $this->_getUiId('minute') . '>' . "\n";
8682
for ($i = 0; $i < 60; $i++) {
8783
$hour = str_pad($i, 2, '0', STR_PAD_LEFT);
8884
$html .= '<option value="' . $hour . '" ' . ($valueMin ==
8985
$i ? 'selected="selected"' : '') . '>' . $hour . '</option>';
9086
}
9187
$html .= '</select>' . "\n";
9288

93-
$html .= ':&nbsp;<select name="' . $this->getName() . '" style="width:80px" ' . $this->serialize(
94-
$this->getHtmlAttributes()
95-
) . $this->_getUiId(
96-
'second'
97-
) . '>' . "\n";
89+
$html .= ':&nbsp;<select name="' . $this->getName() . '" style="width:80px" '
90+
. $this->serialize($this->getHtmlAttributes())
91+
. $this->_getUiId('second') . '>' . "\n";
9892
for ($i = 0; $i < 60; $i++) {
9993
$hour = str_pad($i, 2, '0', STR_PAD_LEFT);
10094
$html .= '<option value="' . $hour . '" ' . ($valueSec ==

0 commit comments

Comments
 (0)