Code Duplication    Length = 4-4 lines in 2 locations

api/src/Vfs/StreamWrapper.php 2 locations

@@ 814-817 (lines=4) @@
811
					}
812
					elseif (($lpath = Vfs::readlink($url)))
813
					{
814
						if ($lpath[0] != '/')	// concat relative path
815
						{
816
							$lpath = Vfs::concat(Vfs::parse_url($path,PHP_URL_PATH),'../'.$lpath);
817
						}
818
						$u_query = parse_url($url,PHP_URL_QUERY);
819
						$url = Vfs::PREFIX.$lpath;
820
						if (self::LOG_LEVEL > 1) error_log(__METHOD__."($path,$flags) symlif (substr($path,-1) == '/' && $path != '/') $path = substr($path,0,-1);	// remove trailing slash eg. added by WebDAVink found and resolved to $url");
@@ 927-930 (lines=4) @@
924
				{
925
					if (self::LOG_LEVEL > 1) $log = "rel_path='$rel_path', url='$url': lpath='$lpath'";
926
927
					if ($lpath[0] != '/')
928
					{
929
						$lpath = Vfs::concat(Vfs::parse_url($url,PHP_URL_PATH),'../'.$lpath);
930
					}
931
					//self::symlinkCache_add($path,Vfs::PREFIX.$lpath);
932
					$url = Vfs::PREFIX.Vfs::concat($lpath,$rel_path);
933
					if (self::LOG_LEVEL > 1) error_log("$log --> lpath='$lpath', url='$url'");