Skip to content

Commit 5c5e37f

Browse files
committed
MAGE-1258 Shorten long method name
1 parent 7026b19 commit 5c5e37f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Service/Product/FacetBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function getRenderingContentAttributes(array $facets): array
107107
return array_map(
108108
function(string $attribute) {
109109
if ($attribute === self::FACET_ATTRIBUTE_CATEGORIES) {
110-
$attribute = $this->getRenderingContentFriendlyCategoryFacetAttributeName();
110+
$attribute = $this->getCategoryAttributeNameForRenderingContent();
111111
}
112112
return $attribute;
113113
},
@@ -122,7 +122,7 @@ function(string $attribute) {
122122
*
123123
* @return string
124124
*/
125-
protected function getRenderingContentFriendlyCategoryFacetAttributeName(): string
125+
protected function getCategoryAttributeNameForRenderingContent(): string
126126
{
127127
return self::FACET_ATTRIBUTE_CATEGORIES . '.level0';
128128
}
@@ -213,7 +213,7 @@ protected function assertCategoryFacet(int $storeId, array $facets): array
213213
protected function addMerchandisingFacets(int $storeId, array $facets): array
214214
{
215215
if ($this->hasCategoryFacet($facets)) {
216-
$facets[] = $this->getRawFacet($this->getRenderingContentFriendlyCategoryFacetAttributeName());
216+
$facets[] = $this->getRawFacet($this->getCategoryAttributeNameForRenderingContent());
217217
}
218218

219219
// Used for legacy merchandising features - always required!

0 commit comments

Comments
 (0)