From 810adf0e27f93109729dd231e3281c98f59be8db Mon Sep 17 00:00:00 2001 From: Cid Lopes Date: Mon, 14 Oct 2024 14:40:28 +0300 Subject: [PATCH] Codestyle fixes --- Model/Indexer/Partial/ProductInventoryIndexer.php | 4 ++-- Model/Indexer/Partial/ProductPriceIndexer.php | 4 ++-- Model/Product/Partial/InventoryProduct.php | 2 +- Model/Product/Partial/PriceProduct.php | 7 ++----- Model/Service/Sync/Partial/InventoryBulkConsumer.php | 2 +- Model/Service/Sync/Partial/PriceBulkConsumer.php | 2 +- Model/Service/Sync/Partial/PriceService.php | 4 ++-- 7 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Model/Indexer/Partial/ProductInventoryIndexer.php b/Model/Indexer/Partial/ProductInventoryIndexer.php index cf186fe11..84ae9c1c6 100644 --- a/Model/Indexer/Partial/ProductInventoryIndexer.php +++ b/Model/Indexer/Partial/ProductInventoryIndexer.php @@ -86,7 +86,7 @@ public function __construct( Emulation $storeEmulation, ProcessManager $processManager, InputInterface $input, - IndexerStatusServiceInterface $indexerStatusService, + IndexerStatusServiceInterface $indexerStatusService ) { $this->productCollectionBuilder = $productCollectionBuilder; $this->modeSwitcher = $modeSwitcher; @@ -142,4 +142,4 @@ public function getCollection(Store $store, array $ids = []): ProductCollection } return $this->productCollectionBuilder->build(); } -} \ No newline at end of file +} diff --git a/Model/Indexer/Partial/ProductPriceIndexer.php b/Model/Indexer/Partial/ProductPriceIndexer.php index 60e9139b8..a7d8702e3 100644 --- a/Model/Indexer/Partial/ProductPriceIndexer.php +++ b/Model/Indexer/Partial/ProductPriceIndexer.php @@ -86,7 +86,7 @@ public function __construct( Emulation $storeEmulation, ProcessManager $processManager, InputInterface $input, - IndexerStatusServiceInterface $indexerStatusService, + IndexerStatusServiceInterface $indexerStatusService ) { $this->productCollectionBuilder = $productCollectionBuilder; $this->modeSwitcher = $modeSwitcher; @@ -142,4 +142,4 @@ public function getCollection(Store $store, array $ids = []): ProductCollection } return $this->productCollectionBuilder->build(); } -} \ No newline at end of file +} diff --git a/Model/Product/Partial/InventoryProduct.php b/Model/Product/Partial/InventoryProduct.php index 9650a4b71..8c95a8caa 100644 --- a/Model/Product/Partial/InventoryProduct.php +++ b/Model/Product/Partial/InventoryProduct.php @@ -75,7 +75,7 @@ public function __construct( NostoUrlBuilder $urlBuilder, StockService $stockService, FullProductBuilder $fullProductBuilder, - NostoSkuCollection $skuCollection, + NostoSkuCollection $skuCollection ) { $this->nostoDataHelper = $nostoDataHelper; $this->urlBuilder = $urlBuilder; diff --git a/Model/Product/Partial/PriceProduct.php b/Model/Product/Partial/PriceProduct.php index a3aca9a83..bafd48e22 100644 --- a/Model/Product/Partial/PriceProduct.php +++ b/Model/Product/Partial/PriceProduct.php @@ -63,9 +63,6 @@ class PriceProduct /** @var PriceVariationCollection */ private PriceVariationCollection $priceVariationCollection; - - - /** * Builder constructor. * @param NostoDataHelper $nostoDataHelper @@ -79,7 +76,7 @@ public function __construct( NostoPriceHelper $priceHelper, NostoUrlBuilder $urlBuilder, CurrencyHelper $nostoCurrencyHelper, - PriceVariationCollection $priceVariationCollection, + PriceVariationCollection $priceVariationCollection ) { $this->nostoDataHelper = $nostoDataHelper; $this->nostoPriceHelper = $priceHelper; @@ -125,4 +122,4 @@ public function build( } return $nostoProduct; } -} \ No newline at end of file +} diff --git a/Model/Service/Sync/Partial/InventoryBulkConsumer.php b/Model/Service/Sync/Partial/InventoryBulkConsumer.php index 5cab2d404..eccfff270 100644 --- a/Model/Service/Sync/Partial/InventoryBulkConsumer.php +++ b/Model/Service/Sync/Partial/InventoryBulkConsumer.php @@ -49,8 +49,8 @@ /** * Inventory Bulk Consumer + * Used for bulk operations when doing partial inventory updates * - * Class InventoryBulkConsumer */ class InventoryBulkConsumer extends AbstractBulkConsumer { diff --git a/Model/Service/Sync/Partial/PriceBulkConsumer.php b/Model/Service/Sync/Partial/PriceBulkConsumer.php index 90ed41e0c..14035a54d 100644 --- a/Model/Service/Sync/Partial/PriceBulkConsumer.php +++ b/Model/Service/Sync/Partial/PriceBulkConsumer.php @@ -50,7 +50,7 @@ /** * Price Bulk Consumer * - * Class PriceBulkConsumer + * Used for bulk operations when doing partial price updates */ class PriceBulkConsumer extends AbstractBulkConsumer { diff --git a/Model/Service/Sync/Partial/PriceService.php b/Model/Service/Sync/Partial/PriceService.php index a392b6f73..5e391c53b 100644 --- a/Model/Service/Sync/Partial/PriceService.php +++ b/Model/Service/Sync/Partial/PriceService.php @@ -103,8 +103,8 @@ public function __construct( ProductService $productService, CacheService $cacheService, ProductRepository $productRepository, - $apiBatchSize, - $apiTimeout + $apiBatchSize, + $apiTimeout ) { parent::__construct($nostoDataHelper, $nostoHelperAccount, $logger); $this->productService = $productService;