Code Duplication    Length = 13-13 lines in 2 locations

Core/Matcher/LocationMatcher.php 2 locations

@@ 132-144 (lines=13) @@
129
     * @return Location[]
130
     * @deprecated
131
     */
132
    protected function findLocationsByContentIds(array $contentIds)
133
    {
134
        $locations = [];
135
136
        foreach ($contentIds as $contentId) {
137
            $content = $this->repository->getContentService()->loadContent($contentId);
138
            foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) {
139
                $locations[$location->id] = $location;
140
            }
141
        }
142
143
        return $locations;
144
    }
145
146
    /**
147
     * Returns all locations of a set of objects
@@ 153-165 (lines=13) @@
150
     * @return Location[]
151
     * @deprecated
152
     */
153
    protected function findLocationsByContentRemoteIds(array $remoteContentIds)
154
    {
155
        $locations = [];
156
157
        foreach ($remoteContentIds as $remoteContentId) {
158
            $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId);
159
            foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) {
160
                $locations[$location->id] = $location;
161
            }
162
        }
163
164
        return $locations;
165
    }
166
167
    /**
168
     * @param int[] $locationIds