Code Duplication    Length = 4-4 lines in 2 locations

php/elFinderVolumeFTP.class.php 1 location

@@ 1160-1163 (lines=4) @@
1157
		// find symlinks
1158
		$symlinks = $this->_findSymlinks($dir);
1159
		
1160
		if ($symlinks) {
1161
			$this->rmdirRecursive($dir);
1162
			return $this->setError(array_merge($this->error, array(elFinder::ERROR_ARC_SYMLINKS)));
1163
		}
1164
1165
		// check max files size
1166
		if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {

php/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 905-908 (lines=4) @@
902
			// find symlinks
903
			$symlinks = $this->_findSymlinks($dir);
904
			
905
			if ($symlinks) {
906
				$this->delTree($dir);
907
				return $this->setError(array_merge($this->error, array(elFinder::ERROR_ARC_SYMLINKS)));
908
			}
909
910
			// check max files size
911
			if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {