From 6791460be26cb37ac77445add1f37f859dc57b85 Mon Sep 17 00:00:00 2001 From: mage2pratik Date: Sat, 21 Jul 2018 20:07:20 +0530 Subject: [PATCH 1/2] Correct return type of methods --- app/code/Magento/Catalog/Controller/Category/View.php | 2 +- .../CatalogSearch/Model/ResourceModel/EngineInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Catalog/Controller/Category/View.php b/app/code/Magento/Catalog/Controller/Category/View.php index a72f764a5f1f6..226e572505076 100644 --- a/app/code/Magento/Catalog/Controller/Category/View.php +++ b/app/code/Magento/Catalog/Controller/Category/View.php @@ -111,7 +111,7 @@ public function __construct( /** * Initialize requested category object * - * @return \Magento\Catalog\Model\Category + * @return \Magento\Catalog\Model\Category|bool */ protected function _initCategory() { diff --git a/app/code/Magento/CatalogSearch/Model/ResourceModel/EngineInterface.php b/app/code/Magento/CatalogSearch/Model/ResourceModel/EngineInterface.php index 399f8f763d945..0182b09bcacff 100644 --- a/app/code/Magento/CatalogSearch/Model/ResourceModel/EngineInterface.php +++ b/app/code/Magento/CatalogSearch/Model/ResourceModel/EngineInterface.php @@ -61,7 +61,7 @@ public function processAttributeValue($attribute, $value); * * @param array $index * @param string $separator - * @return string + * @return array */ public function prepareEntityIndex($index, $separator = ' '); } From 334341bbb27961102abf057f09cccca05176d9cd Mon Sep 17 00:00:00 2001 From: mage2pratik Date: Sun, 22 Jul 2018 10:33:36 +0530 Subject: [PATCH 2/2] Correct return type of methods --- .../Model/Indexer/Fulltext/Action/DataProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php b/app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php index 5ad2635576857..a8d46911193a8 100644 --- a/app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php +++ b/app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php @@ -538,7 +538,7 @@ private function getProductEmulator($typeId) * @param array $indexData * @param array $productData * @param int $storeId - * @return string + * @return array * @SuppressWarnings(PHPMD.CyclomaticComplexity) * @since 100.0.3 */