Code Duplication    Length = 11-11 lines in 2 locations

src/Client/DropboxClient.php 2 locations

@@ 135-145 (lines=11) @@
132
     *
133
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy
134
     */
135
    public function copy($fromPath, $toPath)
136
    {
137
        $this->setupRequest([
138
            'from_path' => $this->normalizePath($fromPath),
139
            'to_path'   => $this->normalizePath($toPath),
140
        ]);
141
142
        $this->apiEndpoint = 'files/copy';
143
144
        return $this->doDropboxApiRequest();
145
    }
146
147
    /**
148
     * Create a folder at a given path.
@@ 375-385 (lines=11) @@
372
     *
373
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move
374
     */
375
    public function move($fromPath, $toPath)
376
    {
377
        $this->setupRequest([
378
            'from_path' => $this->normalizePath($fromPath),
379
            'to_path'   => $this->normalizePath($toPath),
380
        ]);
381
382
        $this->apiEndpoint = 'files/move_v2';
383
384
        return $this->doDropboxApiRequest();
385
    }
386
387
    /**
388
     * Create a new file with the contents provided in the request.