Code Duplication    Length = 9-9 lines in 2 locations

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

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