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

@@ 2957-2962 (lines=6) @@
2954
		$this->subdirsCache[$path] = false;
2955
2956
		foreach ($this->scandirCE($path) as $p) {
2957
			if (($stat = $this->stat($p)) && empty($stat['hidden'])) {
2958
				if ($stat['mime'] === 'directory') {
2959
					$this->subdirsCache[$path] = true;
2960
				}
2961
				$this->dirsCache[$path][] = $p;
2962
			}
2963
		}
2964
	}
2965