Code Duplication    Length = 9-9 lines in 2 locations

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

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