Code Duplication    Length = 12-12 lines in 2 locations

Core/Matcher/ContentMatcher.php 2 locations

@@ 178-189 (lines=12) @@
175
     * @return Content[]
176
     * @deprecated
177
     */
178
    protected function findContentsByLocationIds(array $locationIds)
179
    {
180
        $contentIds = [];
181
182
        foreach ($locationIds as $locationId) {
183
            $location = $this->repository->getLocationService()->loadLocation($locationId);
184
            // return unique ids
185
            $contentIds[$location->contentId] = $location->contentId;
186
        }
187
188
        return $this->findContentsByContentIds($contentIds);
189
    }
190
191
    /**
192
     * @param string[] $remoteLocationIds
@@ 196-207 (lines=12) @@
193
     * @return Content[]
194
     * @deprecated
195
     */
196
    protected function findContentsByLocationRemoteIds($remoteLocationIds)
197
    {
198
        $contentIds = [];
199
200
        foreach ($remoteLocationIds as $remoteLocationId) {
201
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteLocationId);
202
            // return unique ids
203
            $contentIds[$location->contentId] = $location->contentId;
204
        }
205
206
        return $this->findContentsByContentIds($contentIds);
207
    }
208
209
    /**
210
     * @param int[] $parentLocationIds