Code Duplication    Length = 5-7 lines in 2 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 989-993 (lines=5) @@
986
     **/
987
    protected function copy($src, $dst, $name)
988
    {
989
        if ($res = $this->_copy($src, $dst, $name)) {
990
            return $res;
991
        } else {
992
            return $this->setError(elFinder::ERROR_COPY, $this->_path($src));
993
        }
994
    }
995
996
    /**

lib/elFinderVolumeGoogleDrive.class.php 1 location

@@ 1153-1159 (lines=7) @@
1150
            } else {
1151
                $this->setError(elFinder::ERROR_COPY, $this->_path($src));
1152
            }
1153
        } else {
1154
            $itemId = $this->_copy($src, $dst, $name);
1155
1156
            return $itemId
1157
            ? $this->_joinPath($dst, $itemId)
1158
            : $this->setError(elFinder::ERROR_COPY, $this->_path($src));
1159
        }
1160
    }
1161
1162
    /**