Skip to content

Commit 9179488

Browse files
committed
MAGETWO-33618: Merchant isn't redirected to correspondent option if wants to enable Dashboard charts
- fixed code style
1 parent f581218 commit 9179488

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Backend/Block/Dashboard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ protected function _prepareLayout()
3131

3232
$this->addChild('sales', 'Magento\Backend\Block\Dashboard\Sales');
3333

34-
if ($this->_scopeConfig->getValue(
34+
$isEnabledCharts = $this->_scopeConfig->getValue(
3535
self::XML_PATH_ENABLE_CHARTS,
3636
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
37-
)
38-
) {
37+
);
38+
if ($isEnabledCharts) {
3939
$block = $this->getLayout()->createBlock('Magento\Backend\Block\Dashboard\Diagrams');
4040
} else {
4141
$block = $this->getLayout()->createBlock(

0 commit comments

Comments
 (0)