Code Duplication    Length = 4-4 lines in 2 locations

php/elFinderVolumeFTP.class.php 1 location

@@ 1147-1150 (lines=4) @@
1144
		// find symlinks
1145
		$symlinks = $this->_findSymlinks($dir);
1146
		
1147
		if ($symlinks) {
1148
			$this->rmdirRecursive($dir);
1149
			return $this->setError(array_merge($this->error, array(elFinder::ERROR_ARC_SYMLINKS)));
1150
		}
1151
1152
		// check max files size
1153
		if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {

php/elFinderVolumeLocalFileSystem.class.php 1 location

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