Skip to content

Commit fe464ac

Browse files
committed
MAGE-878: code updated as per code review suggestions
1 parent 5c87a66 commit fe464ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Helper/ConfigHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ public function getAutocompleteSelector($storeId = null)
236236
}
237237

238238
/**
239-
* Returns config value
239+
* Returns config flag
240240
*
241241
* @param $storeId
242-
* @return mixed
242+
* @return bool
243243
*/
244-
public function includeNonVisibleProductsInIndex($storeId = null)
244+
public function includeNonVisibleProductsInIndex($storeId = null): bool
245245
{
246-
return $this->configInterface->getValue(
246+
return $this->configInterface->isSetFlag(
247247
self::INCLUDE_NON_VISIBLE_PRODUCTS_IN_INDEX,
248248
ScopeInterface::SCOPE_STORE,
249249
$storeId

0 commit comments

Comments
 (0)