Skip to content

Commit 50da0a7

Browse files
committed
MAGETWO-95048: Sidebar navigation is broken for Stores > Configuration, All Stores.
- Fix up docblocks causing code sniff errors
1 parent 956f361 commit 50da0a7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
/**
1010
* Backend menu block
1111
*
12-
* @api
13-
* @method \Magento\Backend\Block\Menu setAdditionalCacheKeyInfo(array $cacheKeyInfo)
12+
* @method $this setAdditionalCacheKeyInfo(array $cacheKeyInfo)
1413
* @method array getAdditionalCacheKeyInfo()
15-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1614
* @api
1715
* @since 100.0.2
16+
*
17+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1818
*/
1919
class Menu extends \Magento\Backend\Block\Template
2020
{
@@ -80,16 +80,17 @@ class Menu extends \Magento\Backend\Block\Template
8080
private $routeConfig;
8181

8282
/**
83-
* @param Template\Context $context
83+
* @param \Magento\Backend\Block\Template\Context $context
8484
* @param \Magento\Backend\Model\UrlInterface $url
8585
* @param \Magento\Backend\Model\Menu\Filter\IteratorFactory $iteratorFactory
8686
* @param \Magento\Backend\Model\Auth\Session $authSession
8787
* @param \Magento\Backend\Model\Menu\Config $menuConfig
8888
* @param \Magento\Framework\Locale\ResolverInterface $localeResolver
89-
* @param \Magento\Framework\App\Route\ConfigInterface $routeConfig
9089
* @param array $data
9190
* @param MenuItemChecker|null $menuItemChecker
9291
* @param AnchorRenderer|null $anchorRenderer
92+
* @param \Magento\Framework\App\Route\ConfigInterface|null $routeConfig
93+
*
9394
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
9495
*/
9596
public function __construct(
@@ -141,6 +142,7 @@ protected function _getAnchorLabel($menuItem)
141142

142143
/**
143144
* Render menu item mouse events
145+
*
144146
* @param \Magento\Backend\Model\Menu\Item $menuItem
145147
* @return string
146148
*/
@@ -354,7 +356,7 @@ protected function _columnBrake($items, $limit)
354356
* @param \Magento\Backend\Model\Menu\Item $menuItem
355357
* @param int $level
356358
* @param int $limit
357-
* @param $id int
359+
* @param int|null $id
358360
* @return string HTML code
359361
*/
360362
protected function _addSubMenu($menuItem, $level, $limit, $id = null)

0 commit comments

Comments
 (0)