Skip to content

Commit 1818eaf

Browse files
committed
Fixed codeStyle issues
1 parent 5a5091c commit 1818eaf

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

setup/src/Magento/Setup/Controller/Navigation.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
*/
66
namespace Magento\Setup\Controller;
77

8+
use Magento\Backend\Model\UrlInterface;
9+
use Magento\Setup\Exception;
10+
use Magento\Setup\Model\Cron\Status;
811
use Magento\Setup\Model\Navigation as NavModel;
12+
use Magento\Setup\Model\ObjectManagerProvider;
913
use Zend\Mvc\Controller\AbstractActionController;
1014
use Zend\View\Model\JsonModel;
1115
use Zend\View\Model\ViewModel;
12-
use Magento\Setup\Model\Cron\Status;
13-
use Magento\Setup\Model\ObjectManagerProvider;
1416

1517
/**
1618
* Class Navigation
@@ -47,7 +49,7 @@ public function __construct(NavModel $navigation, Status $status, ObjectManagerP
4749
$this->navigation = $navigation;
4850
$this->status = $status;
4951
$this->objectManagerProvider = $objectManagerProvider;
50-
$this->view = new ViewModel;
52+
$this->view = new ViewModel();
5153
$this->view->setVariable('menu', $this->navigation->getMenuItems());
5254
$this->view->setVariable('main', $this->navigation->getMainItems());
5355
}
@@ -57,7 +59,7 @@ public function __construct(NavModel $navigation, Status $status, ObjectManagerP
5759
*/
5860
public function indexAction()
5961
{
60-
$json = new JsonModel;
62+
$json = new JsonModel();
6163
$json->setVariable('nav', $this->navigation->getData());
6264
$json->setVariable('menu', $this->navigation->getMenuItems());
6365
$json->setVariable('main', $this->navigation->getMainItems());
@@ -79,11 +81,12 @@ public function menuAction()
7981

8082
/**
8183
* @return array|ViewModel
84+
* @throws Exception
8285
*/
8386
public function sideMenuAction()
8487
{
85-
/** @var \Magento\Backend\Model\UrlInterface $backendUrl */
86-
$backendUrl = $this->objectManagerProvider->get()->get(\Magento\Backend\Model\UrlInterface::class);
88+
/** @var UrlInterface $backendUrl */
89+
$backendUrl = $this->objectManagerProvider->get()->get(UrlInterface::class);
8790

8891
$this->view->setTemplate('/magento/setup/navigation/side-menu.phtml');
8992
$this->view->setVariable('isInstaller', $this->navigation->getType() == NavModel::NAV_INSTALLER);

0 commit comments

Comments
 (0)