Skip to content

Commit 2105fe3

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 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-
$isEnabledCharts = $this->_scopeConfig->getValue(
34+
$isChartEnabled = $this->_scopeConfig->getValue(
3535
self::XML_PATH_ENABLE_CHARTS,
3636
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
3737
);
38-
if ($isEnabledCharts) {
38+
if ($isChartEnabled) {
3939
$block = $this->getLayout()->createBlock('Magento\Backend\Block\Dashboard\Diagrams');
4040
} else {
4141
$block = $this->getLayout()->createBlock(

0 commit comments

Comments
 (0)