Code Duplication    Length = 4-4 lines in 3 locations

php/elFinderVolumeDropbox.class.php 1 location

@@ 704-707 (lines=4) @@
701
		
702
		if ($res) {
703
			foreach($res as $raw) {
704
				if ($timeout && $timeout < time()) {
705
					$this->setError(elFinder::ERROR_SEARCH_TIMEOUT, $this->path($this->encode($path)));
706
					break;
707
				}
708
				
709
				$raw = unserialize($raw);
710
				if ($stat = $this->parseRaw($raw)) {

php/elFinderVolumeMySQL.class.php 1 location

@@ 358-361 (lines=4) @@
355
		
356
		if (($res = $this->query($sql))) {
357
			while ($row = $res->fetch_assoc()) {
358
				if ($timeout && $timeout < time()) {
359
					$this->setError(elFinder::ERROR_SEARCH_TIMEOUT, $this->path($this->encode($path)));
360
					break;
361
				}
362
				
363
				if (!$this->mimeAccepted($row['mime'], $mimes)) {
364
					continue;

php/elFinderVolumeDriver.class.php 1 location

@@ 3330-3333 (lines=4) @@
3327
		$result = array();
3328
		
3329
		$timeout = $this->options['searchTimeout']? $this->searchStart + $this->options['searchTimeout'] : 0;
3330
		if ($timeout && $timeout < time()) {
3331
			$this->setError(elFinder::ERROR_SEARCH_TIMEOUT, $this->path($this->encode($path)));
3332
			return $result;
3333
		}
3334
		
3335
		foreach($this->scandirCE($path) as $p) {
3336
			@set_time_limit($this->options['searchTimeout'] + 30);