Code Duplication    Length = 5-5 lines in 2 locations

includes/Title.php 2 locations

@@ 908-912 (lines=5) @@
905
	 * @return string Content model id
906
	 */
907
	public function getContentModel( $flags = 0 ) {
908
		if ( !$this->mContentModel && $this->getArticleID( $flags ) ) {
909
			$linkCache = LinkCache::singleton();
910
			$linkCache->addLinkObj( $this ); # in case we already had an article ID
911
			$this->mContentModel = $linkCache->getGoodLinkFieldObj( $this, 'model' );
912
		}
913
914
		if ( !$this->mContentModel ) {
915
			$this->mContentModel = ContentHandler::getDefaultModelFor( $this );
@@ 4575-4579 (lines=5) @@
4572
4573
		// check, if the page language could be saved in the database, and if so and
4574
		// the value is not requested already, lookup the page language using LinkCache
4575
		if ( $wgPageLanguageUseDB && $this->mDbPageLanguage === false ) {
4576
			$linkCache = LinkCache::singleton();
4577
			$linkCache->addLinkObj( $this );
4578
			$this->mDbPageLanguage = $linkCache->getGoodLinkFieldObj( $this, 'lang' );
4579
		}
4580
4581
		return $this->mDbPageLanguage;
4582
	}