Code Duplication    Length = 6-6 lines in 2 locations

includes/parser/Preprocessor_DOM.php 1 location

@@ 331-336 (lines=6) @@
328
			if ( $found == 'angle' ) {
329
				$matches = false;
330
				// Handle </onlyinclude>
331
				if ( $enableOnlyinclude
332
					&& substr( $text, $i, strlen( '</onlyinclude>' ) ) == '</onlyinclude>'
333
				) {
334
					$findOnlyinclude = true;
335
					continue;
336
				}
337
338
				// Determine element name
339
				if ( !preg_match( $elementsRegex, $text, $matches, 0, $i + 1 ) ) {

includes/parser/Preprocessor_Hash.php 1 location

@@ 262-267 (lines=6) @@
259
			if ( $found == 'angle' ) {
260
				$matches = false;
261
				// Handle </onlyinclude>
262
				if ( $enableOnlyinclude
263
					&& substr( $text, $i, strlen( '</onlyinclude>' ) ) == '</onlyinclude>'
264
				) {
265
					$findOnlyinclude = true;
266
					continue;
267
				}
268
269
				// Determine element name
270
				if ( !preg_match( $elementsRegex, $text, $matches, 0, $i + 1 ) ) {