Skip to content

Commit 8668528

Browse files
committed
Fix static tests.
1 parent e331b3f commit 8668528

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/AfterImportDataObserver.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ public function __construct(
200200

201201
/**
202202
* Action after data import.
203+
*
203204
* Save new url rewrites and remove old if exist.
204205
*
205206
* @param Observer $observer
@@ -268,6 +269,8 @@ protected function _populateForUrlGeneration($rowData)
268269
}
269270

270271
/**
272+
* Add store id to product data.
273+
*
271274
* @param \Magento\Catalog\Model\Product $product
272275
* @param array $rowData
273276
* @return void
@@ -437,6 +440,8 @@ protected function currentUrlRewritesRegenerate()
437440
}
438441

439442
/**
443+
* Generate url-rewrite for outogenerated url-rewirte.
444+
*
440445
* @param UrlRewrite $url
441446
* @param Category $category
442447
* @return array
@@ -471,6 +476,8 @@ protected function generateForAutogenerated($url, $category)
471476
}
472477

473478
/**
479+
* Generate url-rewrite for custom url-rewirte.
480+
*
474481
* @param UrlRewrite $url
475482
* @param Category $category
476483
* @return array
@@ -504,6 +511,8 @@ protected function generateForCustom($url, $category)
504511
}
505512

506513
/**
514+
* Retrieve category from url metadata.
515+
*
507516
* @param UrlRewrite $url
508517
* @return Category|null|bool
509518
*/
@@ -518,6 +527,8 @@ protected function retrieveCategoryFromMetadata($url)
518527
}
519528

520529
/**
530+
* Check, category suited for url-rewrite generation.
531+
*
521532
* @param \Magento\Catalog\Model\Category $category
522533
* @param int $storeId
523534
* @return bool

0 commit comments

Comments
 (0)