We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 484cc98 + e9dd493 commit 3f3ef35Copy full SHA for 3f3ef35
app/code/Magento/Theme/Block/Html/Topmenu.php
@@ -133,15 +133,15 @@ protected function _countItems($items)
133
*
134
* @param Menu $items
135
* @param int $limit
136
- * @return array|void
+ * @return array
137
138
* @todo: Add Depth Level limit, and better logic for columns
139
*/
140
protected function _columnBrake($items, $limit)
141
{
142
$total = $this->_countItems($items);
143
if ($total <= $limit) {
144
- return;
+ return [];
145
}
146
147
$result[] = ['total' => $total, 'max' => (int)ceil($total / ceil($total / $limit))];
0 commit comments