Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 169-177 (lines=9) @@
166
167
            $content = $this->repository->getContentService()->loadContent($newLocation->contentId);
168
            $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content);
169
            foreach ($urlAliasNames as $languageCode => $name) {
170
                $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation(
171
                    $newLocation->id,
172
                    $loadedTargetLocation->id,
173
                    $name,
174
                    $languageCode,
175
                    $content->contentInfo->alwaysAvailable
176
                );
177
            }
178
179
            $this->persistenceHandler->urlAliasHandler()->locationCopied(
180
                $loadedSubtree->id,
@@ 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,