Code Duplication    Length = 11-12 lines in 2 locations

src/Client/DropboxClient.php 2 locations

@@ 261-272 (lines=12) @@
258
     *
259
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
260
     */
261
    public function getTemporaryLink($path)
262
    {
263
        $this->setupRequest([
264
            'path' => $this->normalizePath($path),
265
        ]);
266
267
        $this->apiEndpoint = 'files/get_temporary_link';
268
269
        $response = $this->doDropboxApiRequest();
270
271
        return $response['link'];
272
    }
273
274
    /**
275
     * Get a thumbnail for an image.
@@ 326-336 (lines=11) @@
323
     *
324
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
325
     */
326
    public function listFolder($path = '', $recursive = false)
327
    {
328
        $this->setupRequest([
329
            'path'      => $this->normalizePath($path),
330
            'recursive' => $recursive,
331
        ]);
332
333
        $this->apiEndpoint = 'files/list_folder';
334
335
        return $this->doDropboxApiRequest();
336
    }
337
338
    /**
339
     * Once a cursor has been retrieved from list_folder, use this to paginate through all files and