Code Duplication    Length = 7-7 lines in 3 locations

includes/parser/CoreParserFunctions.php 3 locations

@@ 542-548 (lines=7) @@
539
		}
540
		return str_replace( '_', ' ', $t->getNsText() );
541
	}
542
	public static function namespacee( $parser, $title = null ) {
543
		$t = Title::newFromText( $title );
544
		if ( is_null( $t ) ) {
545
			return '';
546
		}
547
		return wfUrlencode( $t->getNsText() );
548
	}
549
	public static function namespacenumber( $parser, $title = null ) {
550
		$t = Title::newFromText( $title );
551
		if ( is_null( $t ) ) {
@@ 570-576 (lines=7) @@
567
		}
568
		return wfUrlencode( $t->getTalkNsText() );
569
	}
570
	public static function subjectspace( $parser, $title = null ) {
571
		$t = Title::newFromText( $title );
572
		if ( is_null( $t ) ) {
573
			return '';
574
		}
575
		return str_replace( '_', ' ', $t->getSubjectNsText() );
576
	}
577
	public static function subjectspacee( $parser, $title = null ) {
578
		$t = Title::newFromText( $title );
579
		if ( is_null( $t ) ) {
@@ 577-583 (lines=7) @@
574
		}
575
		return str_replace( '_', ' ', $t->getSubjectNsText() );
576
	}
577
	public static function subjectspacee( $parser, $title = null ) {
578
		$t = Title::newFromText( $title );
579
		if ( is_null( $t ) ) {
580
			return '';
581
		}
582
		return wfUrlencode( $t->getSubjectNsText() );
583
	}
584
585
	/**
586
	 * Functions to get and normalize pagenames, corresponding to the magic words