Skip to content

Commit 6692e08

Browse files
fixing static tests
1 parent a572ae2 commit 6692e08

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/code/Magento/AdvancedPricingImportExport/Model/Import/AdvancedPricing.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ class AdvancedPricing extends \Magento\ImportExport\Model\Import\Entity\Abstract
185185
* @param AdvancedPricing\Validator\Website $websiteValidator
186186
* @param AdvancedPricing\Validator\TierPrice $tierPriceValidator
187187
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
188+
* @throws \Exception
188189
*/
189190
public function __construct(
190191
\Magento\Framework\Json\Helper\Data $jsonHelper,
@@ -255,6 +256,7 @@ public function getEntityTypeCode()
255256
* @param array $rowData
256257
* @param int $rowNum
257258
* @return bool
259+
* @throws \Zend_Validate_Exception
258260
*/
259261
public function validateRow(array $rowData, $rowNum)
260262
{
@@ -308,6 +310,7 @@ protected function _importData()
308310
* Save advanced pricing
309311
*
310312
* @return $this
313+
* @throws \Exception
311314
*/
312315
public function saveAdvancedPricing()
313316
{
@@ -319,6 +322,7 @@ public function saveAdvancedPricing()
319322
* Deletes Advanced price data from raw data.
320323
*
321324
* @return $this
325+
* @throws \Exception
322326
*/
323327
public function deleteAdvancedPricing()
324328
{
@@ -347,6 +351,7 @@ public function deleteAdvancedPricing()
347351
* Replace advanced pricing
348352
*
349353
* @return $this
354+
* @throws \Exception
350355
*/
351356
public function replaceAdvancedPricing()
352357
{
@@ -360,6 +365,7 @@ public function replaceAdvancedPricing()
360365
* @return $this
361366
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
362367
* @SuppressWarnings(PHPMD.NPathComplexity)
368+
* @throws \Exception
363369
*/
364370
protected function saveAndReplaceAdvancedPrices()
365371
{
@@ -427,6 +433,7 @@ protected function saveAndReplaceAdvancedPrices()
427433
* @param array $priceData
428434
* @param string $table
429435
* @return $this
436+
* @throws \Exception
430437
*/
431438
protected function saveProductPrices(array $priceData, $table)
432439
{
@@ -458,6 +465,7 @@ protected function saveProductPrices(array $priceData, $table)
458465
* @param array $listSku
459466
* @param string $table
460467
* @return boolean
468+
* @throws \Exception
461469
*/
462470
protected function deleteProductTierPrices(array $listSku, $table)
463471
{
@@ -535,6 +543,7 @@ protected function getCustomerGroupId($customerGroup)
535543
* Retrieve product skus
536544
*
537545
* @return array
546+
* @throws \Exception
538547
*/
539548
protected function retrieveOldSkus()
540549
{
@@ -555,6 +564,7 @@ protected function retrieveOldSkus()
555564
* @param array $prices
556565
* @param string $table
557566
* @return $this
567+
* @throws \Exception
558568
*/
559569
protected function processCountExistingPrices($prices, $table)
560570
{

0 commit comments

Comments
 (0)