Skip to content

Commit 8464570

Browse files
committed
MC-16239: Search result page contain 24k results
- fix static tests
1 parent d3fcd0c commit 8464570

File tree

6 files changed

+5
-15
lines changed

6 files changed

+5
-15
lines changed

app/code/Magento/Backend/Block/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* the classes they were introduced for.
2020
*
2121
* @api
22-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22+
* @SuppressWarnings(PHPMD)
2323
* @since 100.0.2
2424
*/
2525
class Context extends \Magento\Framework\View\Element\Context

app/code/Magento/Backend/Block/Widget/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* the classes they were introduced for.
2020
*
2121
* @api
22-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22+
* @SuppressWarnings(PHPMD)
2323
* @since 100.0.2
2424
*/
2525
class Context extends \Magento\Backend\Block\Template\Context

app/code/Magento/Catalog/Block/Product/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* the classes they were introduced for.
2020
*
2121
* @deprecated 101.1.0
22-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22+
* @SuppressWarnings(PHPMD)
2323
*/
2424
class Context extends \Magento\Framework\View\Element\Template\Context
2525
{

app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SearchCriteriaResolverFactory;
1515
use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplierFactory;
1616
use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplierInterface;
17-
use Magento\Framework\Search\EngineResolverInterface;
1817
use Magento\Framework\Data\Collection\Db\SizeResolverInterfaceFactory;
1918
use Magento\Framework\DB\Select;
2019
use Magento\Framework\Api\Search\SearchResultInterface;
@@ -28,7 +27,6 @@
2827
use Magento\Framework\Exception\LocalizedException;
2928
use Magento\Framework\App\ObjectManager;
3029
use Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitationFactory;
31-
use Magento\Search\Model\EngineResolver;
3230

3331
/**
3432
* Fulltext Collection
@@ -125,11 +123,6 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
125123
*/
126124
private $totalRecordsResolverFactory;
127125

128-
/**
129-
* @var EngineResolverInterface
130-
*/
131-
private $engineResolver;
132-
133126
/**
134127
* @var array
135128
*/
@@ -177,7 +170,6 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
177170
* @param SearchCriteriaResolverFactory|null $searchCriteriaResolverFactory
178171
* @param SearchResultApplierFactory|null $searchResultApplierFactory
179172
* @param TotalRecordsResolverFactory|null $totalRecordsResolverFactory
180-
* @param EngineResolverInterface|null $engineResolver
181173
* @param DefaultFilterStrategyApplyCheckerInterface|null $defaultFilterStrategyApplyChecker
182174
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
183175
* @SuppressWarnings(PHPMD.NPathComplexity)
@@ -217,7 +209,6 @@ public function __construct(
217209
SearchCriteriaResolverFactory $searchCriteriaResolverFactory = null,
218210
SearchResultApplierFactory $searchResultApplierFactory = null,
219211
TotalRecordsResolverFactory $totalRecordsResolverFactory = null,
220-
EngineResolverInterface $engineResolver = null,
221212
DefaultFilterStrategyApplyCheckerInterface $defaultFilterStrategyApplyChecker = null
222213
) {
223214
$this->queryFactory = $catalogSearchData;

lib/internal/Magento/Framework/View/Element/Context.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
* As Magento moves from inheritance-based APIs all such classes will be deprecated together with
1919
* the classes they were introduced for.
2020
*
21-
* @SuppressWarnings(PHPMD.TooManyFields)
22-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
21+
* @SuppressWarnings(PHPMD)
2322
*
2423
* @api
2524
*/

lib/internal/Magento/Framework/View/Element/Template/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* the classes they were introduced for.
2020
*
2121
* @api
22-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22+
* @SuppressWarnings(PHPMD)
2323
*/
2424
class Context extends \Magento\Framework\View\Element\Context
2525
{

0 commit comments

Comments
 (0)