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

@@ 3194-3196 (lines=3) @@
3191
				
3192
				$result[] = $stat;
3193
			}
3194
			if ($stat['mime'] == 'directory' && $stat['read'] && !isset($stat['alias'])) {
3195
				$result = array_merge($result, $this->doSearch($p, $q, $mimes));
3196
			}
3197
		}
3198
		
3199
		return $result;