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

@@ 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