Code Duplication    Length = 9-9 lines in 2 locations

src/Api/Providers/Interests.php 1 location

@@ 44-52 (lines=9) @@
41
     * @param int $limit
42
     * @return Generator
43
     */
44
    public function pins($interest, $limit = 0)
45
    {
46
       $data = [
47
           'feed'             => $interest,
48
           'is_category_feed' => true,
49
       ];
50
51
        return $this->getFeed($data, UrlBuilder::RESOURCE_GET_CATEGORY_FEED, $limit);
52
    }
53
}
54

src/Api/Providers/Topics.php 1 location

@@ 46-54 (lines=9) @@
43
     * @param int $limit
44
     * @return Generator
45
     */
46
    public function pins($interest, $limit = 0)
47
    {
48
        $data = [
49
            'interest'  => $interest,
50
            'pins_only' => false,
51
        ];
52
53
        return $this->getFeed($data, UrlBuilder::RESOURCE_GET_TOPIC_FEED, $limit);
54
    }
55
}