Skip to content

Commit 39542fd

Browse files
committed
Fix one code sniffer problem; Add phpcs:disable...
...for code style problem existing before and add according FIXME
1 parent 7dbdfd5 commit 39542fd

File tree

1 file changed

+8
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+8
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ class Product extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
795795
* @param StockItemImporterInterface|null $stockItemImporter
796796
* @param DateTimeFactory $dateTimeFactory
797797
* @param ProductRepositoryInterface|null $productRepository
798-
* @oaram LinkProcessor|null $linkProcessor
798+
* @param LinkProcessor|null $linkProcessor
799799
* @throws LocalizedException
800800
* @throws \Magento\Framework\Exception\FileSystemException
801801
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
@@ -1496,14 +1496,19 @@ public function getImagesFromRow(array $rowData)
14961496
return [$images, $labels];
14971497
}
14981498

1499+
// phpcs:disable Generic.Metrics.NestingLevel
1500+
14991501
/**
15001502
* Gather and save information about product entities.
15011503
*
1504+
* FIXME: Reduce nesting level
1505+
*
15021506
* @return $this
15031507
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
15041508
* @SuppressWarnings(PHPMD.NPathComplexity)
15051509
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
15061510
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1511+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
15071512
* @throws LocalizedException
15081513
*/
15091514
protected function _saveProducts()
@@ -1880,6 +1885,8 @@ protected function _saveProducts()
18801885
return $this;
18811886
}
18821887

1888+
// phpcs:enable
1889+
18831890
/**
18841891
* Prepare array with image states (visible or hidden from product page)
18851892
*

0 commit comments

Comments
 (0)