Code Duplication    Length = 7-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 1 location

@@ 3170-3176 (lines=7) @@
3167
3168
			if ((!$mimes || $stat['mime'] !== 'directory') && $this->stripos($name, $q) !== false) {
3169
				$stat['path'] = $this->path($stat['hash']);
3170
				if ($this->URL && !isset($stat['url'])) {
3171
					$path = str_replace($this->separator, '/', substr($p, strlen($this->root) + 1));
3172
					if ($this->encoding) {
3173
						$path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true)));
3174
					}
3175
					$stat['url'] = $this->URL . $path;
3176
				}
3177
				
3178
				$result[] = $stat;
3179
			}

php/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 1039-1045 (lines=7) @@
1036
		
1037
				if ((!$mimes || $stat['mime'] !== 'directory')) {
1038
					$stat['path'] = $this->path($stat['hash']);
1039
					if ($this->URL && !isset($stat['url'])) {
1040
						$path = str_replace(DIRECTORY_SEPARATOR, '/', substr($p, strlen($this->root) + 1));
1041
						if ($this->encoding) {
1042
							$path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true)));
1043
						}
1044
						$stat['url'] = $this->URL . $path;
1045
					}
1046
		
1047
					$result[] = $stat;
1048
				}