Code Duplication    Length = 5-7 lines in 2 locations

includes/Title.php 2 locations

@@ 924-930 (lines=7) @@
921
	 * @return string Content model id
922
	 */
923
	public function getContentModel( $flags = 0 ) {
924
		if ( ( !$this->mContentModel || $flags === Title::GAID_FOR_UPDATE ) &&
925
			$this->getArticleID( $flags )
926
		) {
927
			$linkCache = LinkCache::singleton();
928
			$linkCache->addLinkObj( $this ); # in case we already had an article ID
929
			$this->mContentModel = $linkCache->getGoodLinkFieldObj( $this, 'model' );
930
		}
931
932
		if ( !$this->mContentModel ) {
933
			$this->mContentModel = ContentHandler::getDefaultModelFor( $this );
@@ 4608-4612 (lines=5) @@
4605
4606
		// check, if the page language could be saved in the database, and if so and
4607
		// the value is not requested already, lookup the page language using LinkCache
4608
		if ( $wgPageLanguageUseDB && $this->mDbPageLanguage === false ) {
4609
			$linkCache = LinkCache::singleton();
4610
			$linkCache->addLinkObj( $this );
4611
			$this->mDbPageLanguage = $linkCache->getGoodLinkFieldObj( $this, 'lang' );
4612
		}
4613
4614
		return $this->mDbPageLanguage;
4615
	}