Code Duplication    Length = 13-13 lines in 2 locations

php/elFinderVolumeDropbox.class.php 1 location

@@ 1391-1403 (lines=13) @@
1388
			return true;
1389
		}
1390
		if (is_dir($path)) {
1391
			foreach (scandir($path) as $name) {
1392
				if ($name != '.' && $name != '..') {
1393
					$p = $path.DIRECTORY_SEPARATOR.$name;
1394
					if (is_link($p)) {
1395
						return true;
1396
					}
1397
					if (is_dir($p) && $this->_findSymlinks($p)) {
1398
						return true;
1399
					} elseif (is_file($p)) {
1400
						$this->archiveSize += filesize($p);
1401
					}
1402
				}
1403
			}
1404
		} else {
1405
			$this->archiveSize += filesize($path);
1406
		}

php/elFinderVolumeFTP.class.php 1 location

@@ 1101-1113 (lines=13) @@
1098
			return true;
1099
		}
1100
		if (is_dir($path)) {
1101
			foreach (scandir($path) as $name) {
1102
				if ($name != '.' && $name != '..') {
1103
					$p = $path.DIRECTORY_SEPARATOR.$name;
1104
					if (is_link($p)) {
1105
						return true;
1106
					}
1107
					if (is_dir($p) && $this->_findSymlinks($p)) {
1108
						return true;
1109
					} elseif (is_file($p)) {
1110
						$this->archiveSize += sprintf('%u', filesize($p));
1111
					}
1112
				}
1113
			}
1114
		} else {
1115
			$this->archiveSize += sprintf('%u', filesize($path));
1116
		}