Code Duplication    Length = 3-4 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 1057-1060 (lines=4) @@
1054
		if ($dirs) {
1055
			foreach($dirs as $dir) {
1056
				$stat = $this->stat($dir);
1057
				if ($stat['read'] && !isset($stat['alias'])) {
1058
					@set_time_limit(30);
1059
					$result = array_merge($result, $this->doSearch($dir, $q, $mimes));
1060
				}
1061
			}
1062
		}
1063
	

php/elFinderVolumeDriver.class.php 1 location

@@ 3211-3213 (lines=3) @@
3208
				
3209
				$result[] = $stat;
3210
			}
3211
			if ($stat['mime'] == 'directory' && $stat['read'] && !isset($stat['alias'])) {
3212
				$result = array_merge($result, $this->doSearch($p, $q, $mimes));
3213
			}
3214
		}
3215
		
3216
		return $result;