Code Duplication    Length = 6-6 lines in 2 locations

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];

php/elFinderVolumeDriver.class.php 1 location

@@ 2927-2932 (lines=6) @@
2924
		$this->subdirsCache[$path] = false;
2925
2926
		foreach ($this->scandirCE($path) as $p) {
2927
			if (($stat = $this->stat($p)) && empty($stat['hidden'])) {
2928
				if ($stat['mime'] === 'directory') {
2929
					$this->subdirsCache[$path] = true;
2930
				}
2931
				$this->dirsCache[$path][] = $p;
2932
			}
2933
		}
2934
	}
2935