Skip to content

Commit

Permalink
Fixed codeStyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Jan 30, 2020
1 parent 5a5091c commit 1818eaf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions setup/src/Magento/Setup/Controller/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
*/
namespace Magento\Setup\Controller;

use Magento\Backend\Model\UrlInterface;
use Magento\Setup\Exception;
use Magento\Setup\Model\Cron\Status;
use Magento\Setup\Model\Navigation as NavModel;
use Magento\Setup\Model\ObjectManagerProvider;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\JsonModel;
use Zend\View\Model\ViewModel;
use Magento\Setup\Model\Cron\Status;
use Magento\Setup\Model\ObjectManagerProvider;

/**
* Class Navigation
Expand Down Expand Up @@ -47,7 +49,7 @@ public function __construct(NavModel $navigation, Status $status, ObjectManagerP
$this->navigation = $navigation;
$this->status = $status;
$this->objectManagerProvider = $objectManagerProvider;
$this->view = new ViewModel;
$this->view = new ViewModel();
$this->view->setVariable('menu', $this->navigation->getMenuItems());
$this->view->setVariable('main', $this->navigation->getMainItems());
}
Expand All @@ -57,7 +59,7 @@ public function __construct(NavModel $navigation, Status $status, ObjectManagerP
*/
public function indexAction()
{
$json = new JsonModel;
$json = new JsonModel();
$json->setVariable('nav', $this->navigation->getData());
$json->setVariable('menu', $this->navigation->getMenuItems());
$json->setVariable('main', $this->navigation->getMainItems());
Expand All @@ -79,11 +81,12 @@ public function menuAction()

/**
* @return array|ViewModel
* @throws Exception
*/
public function sideMenuAction()
{
/** @var \Magento\Backend\Model\UrlInterface $backendUrl */
$backendUrl = $this->objectManagerProvider->get()->get(\Magento\Backend\Model\UrlInterface::class);
/** @var UrlInterface $backendUrl */
$backendUrl = $this->objectManagerProvider->get()->get(UrlInterface::class);

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

0 comments on commit 1818eaf

Please sign in to comment.