Code Duplication    Length = 6-10 lines in 2 locations

includes/parser/Parser.php 2 locations

@@ 2125-2134 (lines=10) @@
2122
		}
2123
		$nottalk = !$this->mTitle->isTalkPage();
2124
2125
		if ( $useLinkPrefixExtension ) {
2126
			$m = [];
2127
			if ( preg_match( $e2, $s, $m ) ) {
2128
				$first_prefix = $m[2];
2129
			} else {
2130
				$first_prefix = false;
2131
			}
2132
		} else {
2133
			$prefix = '';
2134
		}
2135
2136
		$useSubpages = $this->areSubpagesAllowed();
2137
@@ 2152-2157 (lines=6) @@
2149
			}
2150
2151
			if ( $useLinkPrefixExtension ) {
2152
				if ( preg_match( $e2, $s, $m ) ) {
2153
					$prefix = $m[2];
2154
					$s = $m[1];
2155
				} else {
2156
					$prefix = '';
2157
				}
2158
				# first link
2159
				if ( $first_prefix ) {
2160
					$prefix = $first_prefix;