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,
@@ 713-721 (lines=9) @@
710
711
            $content = $this->repository->getContentService()->loadContent($location->contentId);
712
            $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content);
713
            foreach ($urlAliasNames as $languageCode => $name) {
714
                $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation(
715
                    $location->id,
716
                    $newParentLocation->id,
717
                    $name,
718
                    $languageCode,
719
                    $content->contentInfo->alwaysAvailable
720
                );
721
            }
722
723
            $this->persistenceHandler->urlAliasHandler()->locationMoved(
724
                $location->id,