Code Duplication    Length = 11-11 lines in 2 locations

src/Client/DropboxClient.php 2 locations

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