Code Duplication    Length = 3-4 lines in 2 locations

php/elFinderVolumeDriver.class.php 1 location

@@ 3259-3261 (lines=3) @@
3256
				
3257
				$result[] = $stat;
3258
			}
3259
			if ($stat['mime'] == 'directory' && $stat['read'] && !isset($stat['alias'])) {
3260
				$result = array_merge($result, $this->doSearch($p, $q, $mimes));
3261
			}
3262
		}
3263
		
3264
		return $result;

php/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 1077-1080 (lines=4) @@
1074
		if ($dirs) {
1075
			foreach($dirs as $dir) {
1076
				$stat = $this->stat($dir);
1077
				if ($stat['read'] && !isset($stat['alias'])) {
1078
					@set_time_limit(30);
1079
					$result = array_merge($result, $this->doSearch($dir, $q, $mimes));
1080
				}
1081
			}
1082
		}
1083