Code Duplication    Length = 11-12 lines in 2 locations

Core/Matcher/ContentMatcher.php 1 location

@@ 236-247 (lines=12) @@
233
     * @return Content[]
234
     * @deprecated
235
     */
236
    protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds)
237
    {
238
        $locationIds = [];
239
240
        foreach ($remoteParentLocationIds as $remoteParentLocationId) {
241
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId);
242
            // unique locations
243
            $locationIds[$location->id] = $location->id;
244
        }
245
246
        return $this->findContentsByParentLocationIds($locationIds);
247
    }
248
249
    /**
250
     * @param string[] $contentTypeIdentifiers

Core/Matcher/LocationMatcher.php 1 location

@@ 228-238 (lines=11) @@
225
     * @return Location[]
226
     * @deprecated
227
     */
228
    protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds)
229
    {
230
        $locationIds = [];
231
232
        foreach ($parentLocationRemoteIds as $parentLocationRemoteId) {
233
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId);
234
            $locationIds[$location->id] = $location->id;
235
        }
236
237
        return $this->findLocationsByParentLocationIds($locationIds);
238
    }
239
}
240