Code Duplication    Length = 3-4 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 1 location

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

php/elFinderVolumeDriver.class.php 1 location

@@ 3170-3172 (lines=3) @@
3167
				
3168
				$result[] = $stat;
3169
			}
3170
			if ($stat['mime'] == 'directory' && $stat['read'] && !isset($stat['alias'])) {
3171
				$result = array_merge($result, $this->doSearch($p, $q, $mimes));
3172
			}
3173
		}
3174
		
3175
		return $result;