Code Duplication    Length = 8-9 lines in 2 locations

src/Api/Providers/Pinners.php 1 location

@@ 82-90 (lines=9) @@
79
     *
80
     * @return Iterator
81
     */
82
    protected function paginate($username, $url, $limit)
83
    {
84
        $params = [
85
            'data' => ['username' => $username],
86
            'url'  => $url,
87
        ];
88
89
        return (new Pagination($this))->paginateOver('getPaginatedData', $params, $limit);
90
    }
91
}
92

src/Api/Providers/Pins.php 1 location

@@ 231-238 (lines=8) @@
228
     * @param int $limit
229
     * @return Iterator
230
     */
231
    public function userFeed($limit = 0)
232
    {
233
        $params = [
234
            'data' => [],
235
            'url'  => UrlHelper::RESOURCE_USER_FEED
236
        ];
237
        return (new Pagination($this))->paginateOver('getPaginatedData', $params, $limit);
238
    }
239
240
    /**
241
     * Calls Pinterest API to like or unlike Pin by ID.