Code Duplication    Length = 3-4 lines in 2 locations

php/elFinderVolumeDriver.class.php 1 location

@@ 3180-3182 (lines=3) @@
3177
				
3178
				$result[] = $stat;
3179
			}
3180
			if ($stat['mime'] == 'directory' && $stat['read'] && !isset($stat['alias'])) {
3181
				$result = array_merge($result, $this->doSearch($p, $q, $mimes));
3182
			}
3183
		}
3184
		
3185
		return $result;

php/elFinderVolumeLocalFileSystem.class.php 1 location

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