Code Duplication    Length = 6-6 lines in 2 locations

php/elFinderVolumeDropbox.class.php 1 location

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

php/elFinderVolumeDriver.class.php 1 location

@@ 2947-2952 (lines=6) @@
2944
		$this->subdirsCache[$path] = false;
2945
2946
		foreach ($this->scandirCE($path) as $p) {
2947
			if (($stat = $this->stat($p)) && empty($stat['hidden'])) {
2948
				if ($stat['mime'] === 'directory') {
2949
					$this->subdirsCache[$path] = true;
2950
				}
2951
				$this->dirsCache[$path][] = $p;
2952
			}
2953
		}
2954
	}
2955