Code Duplication    Length = 14-14 lines in 2 locations

src/Api/Providers/Interests.php 1 location

@@ 39-52 (lines=14) @@
36
     * @param int $limit
37
     * @return array|bool
38
     */
39
    public function getPinsFor($interest, $limit = 0)
40
    {
41
        $params = [
42
            'data' => [
43
                'feed'             => $interest,
44
                'is_category_feed' => true,
45
            ],
46
            'url' => UrlBuilder::RESOURCE_GET_CATEGORY_FEED
47
        ];
48
49
        return $this->getPaginatedResponse(
50
          $params, $limit
51
        );
52
    }
53
}
54

src/Api/Providers/Topics.php 1 location

@@ 42-55 (lines=14) @@
39
     * @param int $limit
40
     * @return array|bool
41
     */
42
    public function getPinsFor($interest, $limit = 0)
43
    {
44
        $params = [
45
            'data' => [
46
                'interest'  => $interest,
47
                'pins_only' => false,
48
            ],
49
            'url' => UrlBuilder::RESOURCE_GET_TOPIC_FEED
50
        ];
51
52
        return $this->getPaginatedResponse(
53
            $params, $limit
54
        );
55
    }
56
}