Code Duplication    Length = 7-7 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 1 location

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

php/elFinderVolumeDriver.class.php 1 location

@@ 3201-3207 (lines=7) @@
3198
3199
			if ((!$mimes || $stat['mime'] !== 'directory') && $this->stripos($name, $q) !== false) {
3200
				$stat['path'] = $this->path($stat['hash']);
3201
				if ($this->URL && !isset($stat['url'])) {
3202
					$path = str_replace($this->separator, '/', substr($p, strlen($this->root) + 1));
3203
					if ($this->encoding) {
3204
						$path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true)));
3205
					}
3206
					$stat['url'] = $this->URL . $path;
3207
				}
3208
				
3209
				$result[] = $stat;
3210
			}