Code Duplication    Length = 7-7 lines in 2 locations

includes/parser/CoreParserFunctions.php 2 locations

@@ 641-647 (lines=7) @@
638
		}
639
		return wfEscapeWikiText( $t->getRootText() );
640
	}
641
	public static function rootpagenamee( $parser, $title = null ) {
642
		$t = Title::newFromText( $title );
643
		if ( is_null( $t ) ) {
644
			return '';
645
		}
646
		return wfEscapeWikiText( wfUrlencode( str_replace( ' ', '_', $t->getRootText() ) ) );
647
	}
648
	public static function basepagename( $parser, $title = null ) {
649
		$t = Title::newFromText( $title );
650
		if ( is_null( $t ) ) {
@@ 655-661 (lines=7) @@
652
		}
653
		return wfEscapeWikiText( $t->getBaseText() );
654
	}
655
	public static function basepagenamee( $parser, $title = null ) {
656
		$t = Title::newFromText( $title );
657
		if ( is_null( $t ) ) {
658
			return '';
659
		}
660
		return wfEscapeWikiText( wfUrlencode( str_replace( ' ', '_', $t->getBaseText() ) ) );
661
	}
662
	public static function talkpagename( $parser, $title = null ) {
663
		$t = Title::newFromText( $title );
664
		if ( is_null( $t ) || !$t->canTalk() ) {