Code Duplication    Length = 3-3 lines in 2 locations

includes/MagicWordArray.php 2 locations

@@ 168-170 (lines=3) @@
165
	public function getVariableStartToEndRegex() {
166
		$base = $this->getBaseRegex();
167
		$newRegex = [ '', '' ];
168
		if ( $base[0] !== '' ) {
169
			$newRegex[0] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[0]})$/iuS" );
170
		}
171
		if ( $base[1] !== '' ) {
172
			$newRegex[1] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[1]})$/S" );
173
		}
@@ 171-173 (lines=3) @@
168
		if ( $base[0] !== '' ) {
169
			$newRegex[0] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[0]})$/iuS" );
170
		}
171
		if ( $base[1] !== '' ) {
172
			$newRegex[1] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[1]})$/S" );
173
		}
174
		return $newRegex;
175
	}
176