Code Duplication    Length = 10-10 lines in 2 locations

src/Api/Providers/Pinners.php 1 location

@@ 178-187 (lines=10) @@
175
     *
176
     * @return Iterator
177
     */
178
    protected function getPaginatedData($username, $url, $sourceUrl, $batchesLimit)
179
    {
180
        $data = [
181
            ['username' => $username],
182
            $url,
183
            $sourceUrl,
184
        ];
185
186
        return Pagination::getPaginatedData([$this, 'getData'], $data, $batchesLimit);
187
    }
188
}
189

src/Api/Providers/Pins.php 1 location

@@ 230-239 (lines=10) @@
227
     * @param int $batchesLimit
228
     * @return Iterator
229
     */
230
    protected function getPaginatedData($domain, $url, $sourceUrl, $batchesLimit)
231
    {
232
        $data = [
233
            ['domain' => $domain],
234
            $url,
235
            $sourceUrl,
236
        ];
237
238
        return Pagination::getPaginatedData([$this, 'execPaginatedRequest'], $data, $batchesLimit);
239
    }
240
    
241
    /**
242
     * @return string