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.
@@ 300-310 (lines=11) @@
297
     *
298
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
299
     */
300
    public function listFolder($path = '', $recursive = false)
301
    {
302
        $this->setupRequest([
303
            'path'      => $this->normalizePath($path),
304
            'recursive' => $recursive,
305
        ]);
306
307
        $this->apiEndpoint = 'files/list_folder';
308
309
        return $this->doDropboxApiRequest();
310
    }
311
312
    /**
313
     * Once a cursor has been retrieved from list_folder, use this to paginate through all files and