From 8ab95cffeffee3509cf0e059139ae3c420768512 Mon Sep 17 00:00:00 2001 From: Valerii Naida Date: Fri, 29 Mar 2019 18:12:25 -0500 Subject: [PATCH] GraphQL-527: Category Tree Contains null Leaves -- fix code style --- .../CatalogGraphQl/Model/Category/DepthCalculator.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php b/app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php index 3d30f26be3b61..b5d02511da4e7 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php +++ b/app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php @@ -26,10 +26,7 @@ public function calculate(FieldNode $fieldNode) : int $depth = count($selections) ? 1 : 0; $childrenDepth = [0]; foreach ($selections as $node) { - if ( - $node->kind === 'InlineFragment' - || null !== $node->alias - ) { + if ($node->kind === 'InlineFragment' || null !== $node->alias) { continue; }