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