Code Duplication    Length = 6-10 lines in 2 locations

includes/parser/Parser.php 2 locations

@@ 2100-2109 (lines=10) @@
2097
		}
2098
		$nottalk = !$this->mTitle->isTalkPage();
2099
2100
		if ( $useLinkPrefixExtension ) {
2101
			$m = [];
2102
			if ( preg_match( $e2, $s, $m ) ) {
2103
				$first_prefix = $m[2];
2104
			} else {
2105
				$first_prefix = false;
2106
			}
2107
		} else {
2108
			$prefix = '';
2109
		}
2110
2111
		$useSubpages = $this->areSubpagesAllowed();
2112
@@ 2127-2132 (lines=6) @@
2124
			}
2125
2126
			if ( $useLinkPrefixExtension ) {
2127
				if ( preg_match( $e2, $s, $m ) ) {
2128
					$prefix = $m[2];
2129
					$s = $m[1];
2130
				} else {
2131
					$prefix = '';
2132
				}
2133
				# first link
2134
				if ( $first_prefix ) {
2135
					$prefix = $first_prefix;