Code Duplication    Length = 9-9 lines in 2 locations

eZ/Publish/Core/Repository/LocationService.php 2 locations

@@ 719-727 (lines=9) @@
716
717
            $content = $this->repository->getContentService()->loadContent($location->contentId);
718
            $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content);
719
            foreach ($urlAliasNames as $languageCode => $name) {
720
                $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation(
721
                    $location->id,
722
                    $newParentLocation->id,
723
                    $name,
724
                    $languageCode,
725
                    $content->contentInfo->alwaysAvailable
726
                );
727
            }
728
729
            $this->persistenceHandler->urlAliasHandler()->locationMoved(
730
                $location->id,
@@ 162-170 (lines=9) @@
159
160
            $content = $this->repository->getContentService()->loadContent($newLocation->contentId);
161
            $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content);
162
            foreach ($urlAliasNames as $languageCode => $name) {
163
                $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation(
164
                    $newLocation->id,
165
                    $loadedTargetLocation->id,
166
                    $name,
167
                    $languageCode,
168
                    $content->contentInfo->alwaysAvailable
169
                );
170
            }
171
172
            $this->persistenceHandler->urlAliasHandler()->locationCopied(
173
                $loadedSubtree->id,