Code Duplication    Length = 11-12 lines in 2 locations

Core/Matcher/ContentMatcher.php 1 location

@@ 250-261 (lines=12) @@
247
     * @return Content[]
248
     * @deprecated
249
     */
250
    protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds)
251
    {
252
        $locationIds = [];
253
254
        foreach ($remoteParentLocationIds as $remoteParentLocationId) {
255
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId);
256
            // unique locations
257
            $locationIds[$location->id] = $location->id;
258
        }
259
260
        return $this->findContentsByParentLocationIds($locationIds);
261
    }
262
263
    /**
264
     * @param string[] $contentTypeIdentifiers

Core/Matcher/LocationMatcher.php 1 location

@@ 240-250 (lines=11) @@
237
     * @return Location[]
238
     * @deprecated
239
     */
240
    protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds)
241
    {
242
        $locationIds = [];
243
244
        foreach ($parentLocationRemoteIds as $parentLocationRemoteId) {
245
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId);
246
            $locationIds[$location->id] = $location->id;
247
        }
248
249
        return $this->findLocationsByParentLocationIds($locationIds);
250
    }
251
}
252