@@ -133,8 +133,8 @@ protected function doFindOneByData(array $data)
133
133
/**
134
134
* Extract most relevant url rewrite from url rewrites list
135
135
*
136
- * @param string $requestPath
137
- * @param array $urlRewrites
136
+ * @param string $requestPath
137
+ * @param array $urlRewrites
138
138
* @return array|null
139
139
*/
140
140
private function extractMostRelevantUrlRewrite (string $ requestPath , array $ urlRewrites ): ?array
@@ -177,8 +177,8 @@ private function extractMostRelevantUrlRewrite(string $requestPath, array $urlRe
177
177
* If request path matches the DB value or it's redirect - we can return result from DB
178
178
* Otherwise return 301 redirect to request path from DB results
179
179
*
180
- * @param string $requestPath
181
- * @param array $urlRewrite
180
+ * @param string $requestPath
181
+ * @param array $urlRewrite
182
182
* @return array
183
183
*/
184
184
private function prepareUrlRewrite (string $ requestPath , array $ urlRewrite ): array
@@ -208,7 +208,7 @@ private function prepareUrlRewrite(string $requestPath, array $urlRewrite): arra
208
208
/**
209
209
* Delete old URLs from DB.
210
210
*
211
- * @param array $uniqueEntities
211
+ * @param array $uniqueEntities
212
212
* @return void
213
213
*/
214
214
private function deleteOldUrls (array $ uniqueEntities ): void
@@ -253,12 +253,12 @@ private function deleteOldUrls(array $uniqueEntities): void
253
253
}
254
254
255
255
/**
256
- * Checks for duplicates both inside the new urls, and outside.
257
- * Because we are using INSERT ON DUPLICATE UPDATE, the insert won't give us an error.
258
- * So, we have to check for existing requestPaths in database with different entity_id.
259
- * And also, we need to check to make sure we don't have same requestPath more than once in our new rewrites.
256
+ * Checks for duplicates both inside the new urls, and outside.
257
+ * Because we are using INSERT ON DUPLICATE UPDATE, the insert won't give us an error.
258
+ * So, we have to check for existing requestPaths in database with different entity_id.
259
+ * And also, we need to check to make sure we don't have same requestPath more than once in our new rewrites.
260
260
*
261
- * @param array $uniqueEntities
261
+ * @param array $uniqueEntities
262
262
* @return void
263
263
*/
264
264
private function checkDuplicates (array $ uniqueEntities ): void
@@ -308,7 +308,7 @@ private function checkDuplicates(array $uniqueEntities): void
308
308
/**
309
309
* Prepare array with unique entities
310
310
*
311
- * @param UrlRewrite[] $urls
311
+ * @param UrlRewrite[] $urls
312
312
* @return array
313
313
*/
314
314
private function prepareUniqueEntities (array $ urls ): array
@@ -319,7 +319,7 @@ private function prepareUniqueEntities(array $urls): array
319
319
$ entityType = $ url ->getEntityType ();
320
320
$ entityId = $ url ->getEntityId ();
321
321
$ requestPath = $ url ->getRequestPath ();
322
- if (null === $ requestPath ) { // Note: because SQL unique keys allow multiple nulls, we skip it.
322
+ if (null === $ requestPath ) { // Note: because SQL unique keys allow multiple nulls, we skip it.
323
323
if (!isset ($ uniqueEntities [$ storeId ][$ entityType ][$ entityId ])) {
324
324
$ uniqueEntities [$ storeId ][$ entityType ][$ entityId ] = [];
325
325
}
@@ -375,7 +375,7 @@ protected function doReplace(array $urls): array
375
375
}
376
376
377
377
/**
378
- * Searches existing rewrites with same requestPath & store, but ignores ones to be updated.
378
+ * Searches existing rewrites with same requestPath & store, but ignores ones to be updated.
379
379
*
380
380
* @param array $urls
381
381
* @param array $uniqueEntities
0 commit comments