@@ -197,7 +197,7 @@ |
||
| 197 | 197 | { |
| 198 | 198 | |
| 199 | 199 | // explode the path of the root category |
| 200 | - list ($rootCategoryPath, ) = explode('/', $path); |
|
| 200 | + list ($rootCategoryPath,) = explode('/', $path); |
|
| 201 | 201 | |
| 202 | 202 | // query whether or not a root category with the given path exists |
| 203 | 203 | if ($rootCategory = $this->getCategoryByPath($rootCategoryPath)) { |
@@ -313,7 +313,7 @@ |
||
| 313 | 313 | * @param \TechDivision\Import\Subjects\UrlKeyAwareSubjectInterface $subject The subject to make the URL key unique for |
| 314 | 314 | * @param array $entity The entity to make the URL key unique for |
| 315 | 315 | * @param string $urlKey The URL key to make unique |
| 316 | - * @param array $urlPaths The URL paths to make unique |
|
| 316 | + * @param string[] $urlPaths The URL paths to make unique |
|
| 317 | 317 | * |
| 318 | 318 | * @return string The unique URL key |
| 319 | 319 | */ |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | * |
| 232 | 232 | * @param array $row The URL rewrite to persist |
| 233 | 233 | * |
| 234 | - * @return string The ID of the persisted entity |
|
| 234 | + * @return integer The ID of the persisted entity |
|
| 235 | 235 | */ |
| 236 | 236 | protected function persistUrlRewrite($row) |
| 237 | 237 | { |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | * @param integer $entityId The entity ID to load the URL rewrites for |
| 212 | 212 | * @param integer $storeId The store ID to load the URL rewrites for |
| 213 | 213 | * |
| 214 | - * @return array The URL rewrites |
|
| 214 | + * @return \Generator The URL rewrites |
|
| 215 | 215 | */ |
| 216 | 216 | protected function loadUrlRewritesByEntityTypeAndEntityIdAndStoreId($entityType, $entityId, $storeId) |
| 217 | 217 | { |