|
7 | 7 | namespace Magento\Catalog\Model\ResourceModel\Product;
|
8 | 8 |
|
9 | 9 | use Magento\Catalog\Api\Data\ProductInterface;
|
| 10 | +use Magento\Catalog\Model\Indexer\Category\Product\TableMaintainer; |
| 11 | +use Magento\Catalog\Model\Indexer\Product\Price\PriceTableResolver; |
10 | 12 | use Magento\Catalog\Model\Product\Attribute\Source\Status as ProductStatus;
|
11 | 13 | use Magento\Catalog\Model\Product\Gallery\ReadHandler as GalleryReadHandler;
|
12 | 14 | use Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitationFactory;
|
|
16 | 18 | use Magento\Framework\App\ObjectManager;
|
17 | 19 | use Magento\Framework\DB\Select;
|
18 | 20 | use Magento\Framework\EntityManager\MetadataPool;
|
19 |
| -use Magento\Catalog\Model\Indexer\Product\Price\PriceTableResolver; |
20 |
| -use Magento\Store\Model\Indexer\WebsiteDimensionProvider; |
21 |
| -use Magento\Store\Model\Store; |
22 |
| -use Magento\Catalog\Model\Indexer\Category\Product\TableMaintainer; |
23 | 21 | use Magento\Framework\Indexer\DimensionFactory;
|
24 | 22 | use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
|
| 23 | +use Magento\Store\Model\Indexer\WebsiteDimensionProvider; |
| 24 | +use Magento\Store\Model\Store; |
25 | 25 |
|
26 | 26 | /**
|
27 | 27 | * Product collection
|
|
32 | 32 | * @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
|
33 | 33 | * @SuppressWarnings(PHPMD.NumberOfChildren)
|
34 | 34 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
| 35 | + * @SuppressWarnings(PHPMD.CookieAndSessionMisuse) |
35 | 36 | * @since 100.0.2
|
36 | 37 | */
|
37 | 38 | class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection
|
38 | 39 | {
|
| 40 | + |
39 | 41 | /**
|
40 | 42 | * Alias for index table
|
41 | 43 | */
|
@@ -2284,6 +2286,7 @@ private function getBackend()
|
2284 | 2286 | public function addPriceDataFieldFilter($comparisonFormat, $fields)
|
2285 | 2287 | {
|
2286 | 2288 | if (!preg_match('/^%s( (<|>|=|<=|>=|<>) %s)*$/', $comparisonFormat)) {
|
| 2289 | + // phpcs:ignore Magento2.Exceptions.DirectThrow |
2287 | 2290 | throw new \Exception('Invalid comparison format.');
|
2288 | 2291 | }
|
2289 | 2292 |
|
|
0 commit comments