Code Duplication    Length = 13-13 lines in 2 locations

Core/Matcher/LocationMatcher.php 2 locations

@@ 121-133 (lines=13) @@
118
     * @return Location[]
119
     * @deprecated
120
     */
121
    protected function findLocationsByContentIds(array $contentIds)
122
    {
123
        $locations = [];
124
125
        foreach ($contentIds as $contentId) {
126
            $content = $this->repository->getContentService()->loadContent($contentId);
127
            foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) {
128
                $locations[$location->id] = $location;
129
            }
130
        }
131
132
        return $locations;
133
    }
134
135
    /**
136
     * Returns all locations of a set of objects
@@ 142-154 (lines=13) @@
139
     * @return Location[]
140
     * @deprecated
141
     */
142
    protected function findLocationsByContentRemoteIds(array $remoteContentIds)
143
    {
144
        $locations = [];
145
146
        foreach ($remoteContentIds as $remoteContentId) {
147
            $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId);
148
            foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) {
149
                $locations[$location->id] = $location;
150
            }
151
        }
152
153
        return $locations;
154
    }
155
156
    /**
157
     * @param int[] $locationIds