Code Duplication    Length = 11-11 lines in 2 locations

Core/Matcher/LocationMatcher.php 2 locations

@@ 64-74 (lines=11) @@
61
     * @param int[] $contentIds
62
     * @return Location[]
63
     */
64
    protected function findLocationsByContentIds(array $contentIds)
65
    {
66
        $locations = [];
67
68
        foreach ($contentIds as $contentId) {
69
            $content = $this->repository->getContentService()->loadContent($contentId);
70
            $locations = array_merge($locations, $this->repository->getLocationService()->loadLocations($content->contentInfo));
71
        }
72
73
        return $locations;
74
    }
75
76
    /**
77
     * Returns all locations of a set of objects
@@ 82-92 (lines=11) @@
79
     * @param int[] $remoteContentIds
80
     * @return Location[]
81
     */
82
    protected function findLocationsByContentRemoteIds(array $remoteContentIds)
83
    {
84
        $locations = [];
85
86
        foreach ($remoteContentIds as $remoteContentId) {
87
            $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId);
88
            $locations = array_merge($locations, $this->repository->getLocationService()->loadLocations($content->contentInfo));
89
        }
90
91
        return $locations;
92
    }
93
94
    /**
95
     * @param int[] $locationIds