@@ -133,8 +133,8 @@ protected function doFindOneByData(array $data)
133133 /**
134134 * Extract most relevant url rewrite from url rewrites list
135135 *
136- * @param string $requestPath
137- * @param array $urlRewrites
136+ * @param string $requestPath
137+ * @param array $urlRewrites
138138 * @return array|null
139139 */
140140 private function extractMostRelevantUrlRewrite (string $ requestPath , array $ urlRewrites ): ?array
@@ -177,8 +177,8 @@ private function extractMostRelevantUrlRewrite(string $requestPath, array $urlRe
177177 * If request path matches the DB value or it's redirect - we can return result from DB
178178 * Otherwise return 301 redirect to request path from DB results
179179 *
180- * @param string $requestPath
181- * @param array $urlRewrite
180+ * @param string $requestPath
181+ * @param array $urlRewrite
182182 * @return array
183183 */
184184 private function prepareUrlRewrite (string $ requestPath , array $ urlRewrite ): array
@@ -208,7 +208,7 @@ private function prepareUrlRewrite(string $requestPath, array $urlRewrite): arra
208208 /**
209209 * Delete old URLs from DB.
210210 *
211- * @param array $uniqueEntities
211+ * @param array $uniqueEntities
212212 * @return void
213213 */
214214 private function deleteOldUrls (array $ uniqueEntities ): void
@@ -253,12 +253,12 @@ private function deleteOldUrls(array $uniqueEntities): void
253253 }
254254
255255 /**
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.
260260 *
261- * @param array $uniqueEntities
261+ * @param array $uniqueEntities
262262 * @return void
263263 */
264264 private function checkDuplicates (array $ uniqueEntities ): void
@@ -308,7 +308,7 @@ private function checkDuplicates(array $uniqueEntities): void
308308 /**
309309 * Prepare array with unique entities
310310 *
311- * @param UrlRewrite[] $urls
311+ * @param UrlRewrite[] $urls
312312 * @return array
313313 */
314314 private function prepareUniqueEntities (array $ urls ): array
@@ -319,7 +319,7 @@ private function prepareUniqueEntities(array $urls): array
319319 $ entityType = $ url ->getEntityType ();
320320 $ entityId = $ url ->getEntityId ();
321321 $ 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.
323323 if (!isset ($ uniqueEntities [$ storeId ][$ entityType ][$ entityId ])) {
324324 $ uniqueEntities [$ storeId ][$ entityType ][$ entityId ] = [];
325325 }
@@ -375,7 +375,7 @@ protected function doReplace(array $urls): array
375375 }
376376
377377 /**
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.
379379 *
380380 * @param array $urls
381381 * @param array $uniqueEntities
0 commit comments