Code Duplication    Length = 11-11 lines in 2 locations

src/Api/Providers/Pinners.php 1 location

@@ 174-184 (lines=11) @@
171
     *
172
     * @return Iterator
173
     */
174
    public function paginate($username, $url, $sourceUrl, $batchesLimit)
175
    {
176
        $params = [
177
            'data'      => ['username' => $username],
178
            'url'       => $url,
179
            'sourceUrl' => $sourceUrl,
180
            'bookmarks' => []
181
        ];
182
183
        return (new Pagination($this))->getPaginatedData('getPaginatedData', $params, $batchesLimit);
184
    }
185
}
186

src/Api/Providers/Pins.php 1 location

@@ 228-238 (lines=11) @@
225
     *
226
     * @return Iterator
227
     */
228
    public function paginate($source, $url, $sourceUrl, $batchesLimit)
229
    {
230
        $params = [
231
            'data'      => ['domain' => $source],
232
            'url'       => $url,
233
            'sourceUrl' => $sourceUrl,
234
            'bookmarks' => []
235
        ];
236
237
        return (new Pagination($this))->getPaginatedData('getPaginatedData', $params, $batchesLimit);
238
    }
239
    
240
    /**
241
     * @return string