Skip to content

Commit a9796bc

Browse files
committed
Code style changes
1 parent 4282752 commit a9796bc

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Controller/Adminhtml/Actions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function _editAction()
159159
try {
160160
$model = $this->_getModel();
161161
$id = $this->getRequest()->getParam('id');
162-
if(!$model->getId() && $id) {
162+
if (!$model->getId() && $id) {
163163
throw new \Exception("Item is not longer exist.", 1);
164164
}
165165
$this->_getRegistry()->register('current_model', $model);
@@ -522,4 +522,4 @@ protected function _getModel($load = true)
522522
}
523523
return $this->_model;
524524
}
525-
}
525+
}

Model/AdminNotificationFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ public function setLastUpdate()
163163
$this->_cacheManager->save(time(), self::MAGEFAN_CACHE_KEY);
164164
return $this;
165165
}
166-
}
166+
}

Observer/PredispathAdminActionControllerObserver.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ public function __construct(
4545
public function execute(\Magento\Framework\Event\Observer $observer)
4646
{
4747
if ($this->backendAuthSession->isLoggedIn()) {
48-
4948
$feedModel = $this->feedFactory->create();
5049
/* @var $feedModel \Magefan\Community\Model\AdminNotificationFeed */
5150
$feedModel->checkUpdate();
5251
}
5352
}
54-
}
53+
}

0 commit comments

Comments
 (0)