Skip to content

Commit 8038f6e

Browse files
author
Valeriy Nayda
committed
GraphQl-139: Show only active categories
-- Fix static tests
1 parent dfcac0c commit 8038f6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,12 @@ private function mergeCategoriesTrees(array &$tree1, array &$tree2): array
8686
/**
8787
* Recursive method to generate tree for one category path
8888
*
89-
* @param $pathElements
90-
* @param $index
89+
* @param array $pathElements
90+
* @param int $index
9191
* @return array
9292
*/
93-
private function explodePathToArray($pathElements, $index): array
93+
private function explodePathToArray(array $pathElements, int $index): array
9494
{
95-
9695
$tree = [];
9796
$tree[$pathElements[$index]]['id'] = $pathElements[$index];
9897
if ($index === count($pathElements) - 1) {

0 commit comments

Comments
 (0)