Code Duplication    Length = 11-11 lines in 2 locations

Core/Matcher/ContentMatcher.php 2 locations

@@ 99-109 (lines=11) @@
96
     * @param int[] $locationIds
97
     * @return Content[]
98
     */
99
    protected function findContentsByLocationIds(array $locationIds)
100
    {
101
        $contentIds = [];
102
103
        foreach ($locationIds as $locationId) {
104
            $location = $this->repository->getLocationService()->loadLocation($locationId);
105
            $contentIds[] = $location->contentId;
106
        }
107
108
        return $this->findContentsByContentIds($contentIds);
109
    }
110
111
    /**
112
     * @param string[] $remoteLocationIds
@@ 115-125 (lines=11) @@
112
     * @param string[] $remoteLocationIds
113
     * @return Content[]
114
     */
115
    protected function findContentsByLocationRemoteIds($remoteLocationIds)
116
    {
117
        $contentIds = [];
118
119
        foreach ($remoteLocationIds as $remoteLocationId) {
120
            $location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteLocationId);
121
            $contentIds[] = $location->contentId;
122
        }
123
124
        return $this->findContentsByContentIds($contentIds);
125
    }
126
127
    /**
128
     * @param int[] $parentLocationIds