Code Duplication    Length = 5-7 lines in 2 locations

includes/Title.php 2 locations

@@ 911-917 (lines=7) @@
908
	 * @return string Content model id
909
	 */
910
	public function getContentModel( $flags = 0 ) {
911
		if ( ( !$this->mContentModel || $flags === Title::GAID_FOR_UPDATE ) &&
912
			$this->getArticleID( $flags )
913
		) {
914
			$linkCache = LinkCache::singleton();
915
			$linkCache->addLinkObj( $this ); # in case we already had an article ID
916
			$this->mContentModel = $linkCache->getGoodLinkFieldObj( $this, 'model' );
917
		}
918
919
		if ( !$this->mContentModel ) {
920
			$this->mContentModel = ContentHandler::getDefaultModelFor( $this );
@@ 4595-4599 (lines=5) @@
4592
4593
		// check, if the page language could be saved in the database, and if so and
4594
		// the value is not requested already, lookup the page language using LinkCache
4595
		if ( $wgPageLanguageUseDB && $this->mDbPageLanguage === false ) {
4596
			$linkCache = LinkCache::singleton();
4597
			$linkCache->addLinkObj( $this );
4598
			$this->mDbPageLanguage = $linkCache->getGoodLinkFieldObj( $this, 'lang' );
4599
		}
4600
4601
		return $this->mDbPageLanguage;
4602
	}