Code Duplication    Length = 12-12 lines in 2 locations

lib/elFinderVolumeDropbox.class.php 2 locations

@@ 1197-1208 (lines=12) @@
1194
     * @return bool
1195
     * @author Dmitry (dio) Levashov
1196
     **/
1197
    protected function _copy($source, $targetDir, $name)
1198
    {
1199
        $path = $this->_normpath($targetDir.'/'.$name);
1200
        try {
1201
            $this->dropbox->copy($source, $path);
1202
        } catch (Dropbox_Exception $e) {
1203
            return $this->setError('Dropbox error: '.$e->getMessage());
1204
        }
1205
        $this->deltaCheck();
1206
1207
        return true;
1208
    }
1209
1210
    /**
1211
     * Move file into another parent dir.
@@ 1221-1232 (lines=12) @@
1218
     * @internal param string $target target dir path
1219
     * @author Dmitry (dio) Levashov
1220
     */
1221
    protected function _move($source, $targetDir, $name)
1222
    {
1223
        $target = $this->_normpath($targetDir.'/'.$name);
1224
        try {
1225
            $this->dropbox->move($source, $target);
1226
        } catch (Dropbox_Exception $e) {
1227
            return $this->setError('Dropbox error: '.$e->getMessage());
1228
        }
1229
        $this->deltaCheck();
1230
1231
        return $target;
1232
    }
1233
1234
    /**
1235
     * Remove file.