From af968300a43925b865727d18b3e62a16cace8454 Mon Sep 17 00:00:00 2001 From: Lena Orobei Date: Fri, 21 Jun 2019 11:38:39 -0500 Subject: [PATCH] magento/graphql-ce#463: Query category for disabled catalog with products returns the products count --- .../Model/Resolver/Category/CheckCategoryIsActive.php | 5 +++-- .../Magento/CatalogGraphQl/Model/Resolver/CategoryTree.php | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Category/CheckCategoryIsActive.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Category/CheckCategoryIsActive.php index bf8057c63de39..5903695d7a5eb 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Category/CheckCategoryIsActive.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Category/CheckCategoryIsActive.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\CatalogGraphQl\Model\Resolver\Category; use Magento\Catalog\Api\Data\CategoryInterface; @@ -33,8 +35,7 @@ class CheckCategoryIsActive public function __construct( CollectionFactory $collectionFactory, MetadataPool $metadata - ) - { + ) { $this->collectionFactory = $collectionFactory; $this->metadata = $metadata; } diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/CategoryTree.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/CategoryTree.php index 8d7aa5495b3ff..89d3805383e1a 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/CategoryTree.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/CategoryTree.php @@ -50,8 +50,7 @@ public function __construct( \Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\CategoryTree $categoryTree, ExtractDataFromCategoryTree $extractDataFromCategoryTree, CheckCategoryIsActive $checkCategoryIsActive - ) - { + ) { $this->categoryTree = $categoryTree; $this->extractDataFromCategoryTree = $extractDataFromCategoryTree; $this->checkCategoryIsActive = $checkCategoryIsActive;