Code Duplication    Length = 11-11 lines in 2 locations

src/Client/DropboxClient.php 2 locations

@@ 125-135 (lines=11) @@
122
     *
123
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy
124
     */
125
    public function copy($fromPath, $toPath)
126
    {
127
        $this->setupRequest([
128
            'from_path' => $this->normalizePath($fromPath),
129
            'to_path'   => $this->normalizePath($toPath),
130
        ]);
131
132
        $this->apiEndpoint = 'files/copy';
133
134
        return $this->doDropboxApiRequest();
135
    }
136
137
    /**
138
     * Create a folder at a given path.
@@ 347-357 (lines=11) @@
344
     *
345
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move
346
     */
347
    public function move($fromPath, $toPath)
348
    {
349
        $this->setupRequest([
350
            'from_path' => $this->normalizePath($fromPath),
351
            'to_path'   => $this->normalizePath($toPath),
352
        ]);
353
354
        $this->apiEndpoint = 'files/move_v2';
355
356
        return $this->doDropboxApiRequest();
357
    }
358
359
    /**
360
     * Create a new file with the contents provided in the request.