Code Duplication    Length = 13-13 lines in 2 locations

php/elFinderVolumeDropbox.class.php 1 location

@@ 1431-1443 (lines=13) @@
1428
			return true;
1429
		}
1430
		if (is_dir($path)) {
1431
			foreach (scandir($path) as $name) {
1432
				if ($name != '.' && $name != '..') {
1433
					$p = $path.DIRECTORY_SEPARATOR.$name;
1434
					if (is_link($p)) {
1435
						return true;
1436
					}
1437
					if (is_dir($p) && $this->_findSymlinks($p)) {
1438
						return true;
1439
					} elseif (is_file($p)) {
1440
						$this->archiveSize += filesize($p);
1441
					}
1442
				}
1443
			}
1444
		} else {
1445
			$this->archiveSize += filesize($path);
1446
		}

php/elFinderVolumeFTP.class.php 1 location

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