Code Duplication    Length = 11-12 lines in 2 locations

Core/Matcher/ContentMatcher.php 1 location

@@ 190-201 (lines=12) @@
187
     * @return Content[]
188
     * @deprecated
189
     */
190
    protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds)
191
    {
192
        $locationIds = [];
193
194
        foreach ($remoteParentLocationIds as $remoteParentLocationId) {
195
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId);
196
            // unique locations
197
            $locationIds[$location->id] = $location->id;
198
        }
199
200
        return $this->findContentsByParentLocationIds($locationIds);
201
    }
202
203
    /**
204
     * @param string[] $contentTypeIdentifiers

Core/Matcher/LocationMatcher.php 1 location

@@ 216-226 (lines=11) @@
213
     * @return Location[]
214
     * @deprecated
215
     */
216
    protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds)
217
    {
218
        $locationIds = [];
219
220
        foreach ($parentLocationRemoteIds as $parentLocationRemoteId) {
221
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId);
222
            $locationIds[$location->id] = $location->id;
223
        }
224
225
        return $this->findLocationsByParentLocationIds($locationIds);
226
    }
227
}
228