Code Duplication    Length = 6-6 lines in 2 locations

php/elFinderVolumeDriver.class.php 1 location

@@ 2913-2918 (lines=6) @@
2910
		$this->subdirsCache[$path] = false;
2911
2912
		foreach ($this->scandirCE($path) as $p) {
2913
			if (($stat = $this->stat($p)) && empty($stat['hidden'])) {
2914
				if ($stat['mime'] === 'directory') {
2915
					$this->subdirsCache[$path] = true;
2916
				}
2917
				$this->dirsCache[$path][] = $p;
2918
			}
2919
		}
2920
	}
2921
	

php/elFinderVolumeDropbox.class.php 1 location

@@ 638-643 (lines=6) @@
635
		if ($res) {
636
			foreach($res as $raw) {
637
				$raw = unserialize($raw);
638
				if ($stat = $this->parseRaw($raw)) {
639
					$stat = $this->updateCache($raw['path'], $stat);
640
					if (empty($stat['hidden'])) {
641
						$this->dirsCache[$path][] = $raw['path'];
642
					}
643
				}
644
			}
645
		}
646
		return $this->dirsCache[$path];