Code Duplication    Length = 6-10 lines in 2 locations

includes/parser/Parser.php 2 locations

@@ 2106-2115 (lines=10) @@
2103
		}
2104
		$nottalk = !$this->mTitle->isTalkPage();
2105
2106
		if ( $useLinkPrefixExtension ) {
2107
			$m = [];
2108
			if ( preg_match( $e2, $s, $m ) ) {
2109
				$first_prefix = $m[2];
2110
			} else {
2111
				$first_prefix = false;
2112
			}
2113
		} else {
2114
			$prefix = '';
2115
		}
2116
2117
		$useSubpages = $this->areSubpagesAllowed();
2118
@@ 2133-2138 (lines=6) @@
2130
			}
2131
2132
			if ( $useLinkPrefixExtension ) {
2133
				if ( preg_match( $e2, $s, $m ) ) {
2134
					$prefix = $m[2];
2135
					$s = $m[1];
2136
				} else {
2137
					$prefix = '';
2138
				}
2139
				# first link
2140
				if ( $first_prefix ) {
2141
					$prefix = $first_prefix;