Skip to content

Commit af96830

Browse files
committed
magento/graphql-ce#463: Query category for disabled catalog with products returns the products count
1 parent 525a1e9 commit af96830

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Category/CheckCategoryIsActive.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\CatalogGraphQl\Model\Resolver\Category;
79

810
use Magento\Catalog\Api\Data\CategoryInterface;
@@ -33,8 +35,7 @@ class CheckCategoryIsActive
3335
public function __construct(
3436
CollectionFactory $collectionFactory,
3537
MetadataPool $metadata
36-
)
37-
{
38+
) {
3839
$this->collectionFactory = $collectionFactory;
3940
$this->metadata = $metadata;
4041
}

app/code/Magento/CatalogGraphQl/Model/Resolver/CategoryTree.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public function __construct(
5050
\Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\CategoryTree $categoryTree,
5151
ExtractDataFromCategoryTree $extractDataFromCategoryTree,
5252
CheckCategoryIsActive $checkCategoryIsActive
53-
)
54-
{
53+
) {
5554
$this->categoryTree = $categoryTree;
5655
$this->extractDataFromCategoryTree = $extractDataFromCategoryTree;
5756
$this->checkCategoryIsActive = $checkCategoryIsActive;

0 commit comments

Comments
 (0)