Code Duplication    Length = 11-12 lines in 2 locations

src/Client/DropboxClient.php 2 locations

@@ 238-249 (lines=12) @@
235
     *
236
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
237
     */
238
    public function getTemporaryLink($path)
239
    {
240
        $this->setupRequest([
241
            'path' => $this->normalizePath($path),
242
        ]);
243
244
        $this->apiEndpoint = 'files/get_temporary_link';
245
246
        $response = $this->doDropboxApiRequest();
247
248
        return $response['link'];
249
    }
250
251
    /**
252
     * Get a thumbnail for an image.
@@ 297-307 (lines=11) @@
294
     *
295
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
296
     */
297
    public function listFolder($path = '', $recursive = false)
298
    {
299
        $this->setupRequest([
300
            'path'      => $this->normalizePath($path),
301
            'recursive' => $recursive,
302
        ]);
303
304
        $this->apiEndpoint = 'files/list_folder';
305
306
        return $this->doDropboxApiRequest();
307
    }
308
309
    /**
310
     * Once a cursor has been retrieved from list_folder, use this to paginate through all files and