Code Duplication    Length = 5-5 lines in 2 locations

includes/parser/Parser.php 2 locations

@@ 1945-1949 (lines=5) @@
1942
1943
		# Fragment part - 'fragment'
1944
		$start = strpos( $url, '#' );
1945
		if ( $start !== false && $start < $end ) {
1946
			$ret = self::normalizeUrlComponent(
1947
				substr( $url, $start, $end - $start ), '"#%<>[\]^`{|}' ) . $ret;
1948
			$end = $start;
1949
		}
1950
1951
		# Query part - 'query' minus &=+;
1952
		$start = strpos( $url, '?' );
@@ 1953-1957 (lines=5) @@
1950
1951
		# Query part - 'query' minus &=+;
1952
		$start = strpos( $url, '?' );
1953
		if ( $start !== false && $start < $end ) {
1954
			$ret = self::normalizeUrlComponent(
1955
				substr( $url, $start, $end - $start ), '"#%<>[\]^`{|}&=+;' ) . $ret;
1956
			$end = $start;
1957
		}
1958
1959
		# Scheme and path part - 'pchar'
1960
		# (we assume no userinfo or encoded colons in the host)