Skip to content

Commit c1ba619

Browse files
committed
MAGETWO-88631: Pr sprint 10 delivery
- fix naming
1 parent 8cc8eff commit c1ba619

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Category implements ResolverInterface
5454
/**
5555
* @var CustomAttributesFlattener
5656
*/
57-
private $customAttributesFlatternner;
57+
private $customAttributesFlattener;
5858

5959
/**
6060
* @var ValueFactory
@@ -66,20 +66,20 @@ class Category implements ResolverInterface
6666
* @param CollectionFactory $collectionFactory
6767
* @param DataObjectProcessor $dataObjectProcessor
6868
* @param AttributesJoiner $attributesJoiner
69-
* @param CustomAttributesFlattener $customAttributesFlatternner
69+
* @param CustomAttributesFlattener $customAttributesFlattener
7070
* @param ValueFactory $valueFactory
7171
*/
7272
public function __construct(
7373
CollectionFactory $collectionFactory,
7474
DataObjectProcessor $dataObjectProcessor,
7575
AttributesJoiner $attributesJoiner,
76-
CustomAttributesFlattener $customAttributesFlatternner,
76+
CustomAttributesFlattener $customAttributesFlattener,
7777
ValueFactory $valueFactory
7878
) {
7979
$this->collection = $collectionFactory->create();
8080
$this->dataObjectProcessor = $dataObjectProcessor;
8181
$this->attributesJoiner = $attributesJoiner;
82-
$this->customAttributesFlatternner = $customAttributesFlatternner;
82+
$this->customAttributesFlattener = $customAttributesFlattener;
8383
$this->valueFactory = $valueFactory;
8484
}
8585

@@ -109,7 +109,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
109109
$item,
110110
CategoryInterface::class
111111
);
112-
$categories[$item->getId()] = $this->customAttributesFlatternner
112+
$categories[$item->getId()] = $this->customAttributesFlattener
113113
->flaternize($categories[$item->getId()]);
114114
$categories[$item->getId()]['product_count'] = $item->getProductCount();
115115
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CategoryTree
5050
/**
5151
* @var CustomAttributesFlattener
5252
*/
53-
private $customAttributesFlatternner;
53+
private $customAttributesFlattener;
5454

5555
/**
5656
* @var DataObjectProcessor
@@ -62,22 +62,22 @@ class CategoryTree
6262
* @param AttributesJoiner $attributesJoiner
6363
* @param ResourceConnection $resourceConnection
6464
* @param Category $resourceCategory
65-
* @param CustomAttributesFlattener $customAttributesFlatternner
65+
* @param CustomAttributesFlattener $customAttributesFlattener
6666
* @param DataObjectProcessor $dataObjectProcessor
6767
*/
6868
public function __construct(
6969
CollectionFactory $collectionFactory,
7070
AttributesJoiner $attributesJoiner,
7171
ResourceConnection $resourceConnection,
7272
Category $resourceCategory,
73-
CustomAttributesFlattener $customAttributesFlatternner,
73+
CustomAttributesFlattener $customAttributesFlattener,
7474
DataObjectProcessor $dataObjectProcessor
7575
) {
7676
$this->collectionFactory = $collectionFactory;
7777
$this->attributesJoiner = $attributesJoiner;
7878
$this->resourceConnection = $resourceConnection;
7979
$this->resourceCategory = $resourceCategory;
80-
$this->customAttributesFlatternner = $customAttributesFlatternner;
80+
$this->customAttributesFlattener = $customAttributesFlattener;
8181
$this->dataObjectProcessor = $dataObjectProcessor;
8282
}
8383

@@ -136,7 +136,7 @@ private function hydrateCategory(CategoryInterface $category) : array
136136
$categoryData['all_children'] = $category->getAllChildren();
137137
$categoryData['children'] = [];
138138
$categoryData['available_sort_by'] = $category->getAvailableSortBy();
139-
return $this->customAttributesFlatternner->flaternize($categoryData);
139+
return $this->customAttributesFlattener->flaternize($categoryData);
140140
}
141141

142142
/**

0 commit comments

Comments
 (0)