Code Duplication    Length = 13-13 lines in 2 locations

Core/Matcher/LocationMatcher.php 2 locations

@@ 144-156 (lines=13) @@
141
     * @return Location[]
142
     * @deprecated
143
     */
144
    protected function findLocationsByContentIds(array $contentIds)
145
    {
146
        $locations = [];
147
148
        foreach ($contentIds as $contentId) {
149
            $content = $this->repository->getContentService()->loadContent($contentId);
150
            foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) {
151
                $locations[$location->id] = $location;
152
            }
153
        }
154
155
        return $locations;
156
    }
157
158
    /**
159
     * Returns all locations of a set of objects
@@ 165-177 (lines=13) @@
162
     * @return Location[]
163
     * @deprecated
164
     */
165
    protected function findLocationsByContentRemoteIds(array $remoteContentIds)
166
    {
167
        $locations = [];
168
169
        foreach ($remoteContentIds as $remoteContentId) {
170
            $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId);
171
            foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) {
172
                $locations[$location->id] = $location;
173
            }
174
        }
175
176
        return $locations;
177
    }
178
179
    /**
180
     * @param int[] $locationIds