Code Duplication    Length = 11-12 lines in 2 locations

src/Client/DropboxClient.php 2 locations

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