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.
@@ 343-353 (lines=11) @@
340
     *
341
     * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move
342
     */
343
    public function move($fromPath, $toPath)
344
    {
345
        $this->setupRequest([
346
            'from_path' => $this->normalizePath($fromPath),
347
            'to_path'   => $this->normalizePath($toPath),
348
        ]);
349
350
        $this->apiEndpoint = 'files/move_v2';
351
352
        return $this->doDropboxApiRequest();
353
    }
354
355
    /**
356
     * Create a new file with the contents provided in the request.