Code Duplication    Length = 6-6 lines in 2 locations

includes/filerepo/file/ForeignDBFile.php 1 location

@@ 145-150 (lines=6) @@
142
			'page_title' => $this->title->getDBkey()
143
		) );
144
145
		if ( $pageId !== false ) {
146
			$url = $this->repo->makeUrl( array( 'curid' => $pageId ) );
147
			if ( $url !== false ) {
148
				return $url;
149
			}
150
		}
151
		return null;
152
	}
153

includes/filerepo/file/LocalFile.php 1 location

@@ 770-775 (lines=6) @@
767
	public function getDescriptionShortUrl() {
768
		$pageId = $this->title->getArticleID();
769
770
		if ( $pageId !== null ) {
771
			$url = $this->repo->makeUrl( array( 'curid' => $pageId ) );
772
			if ( $url !== false ) {
773
				return $url;
774
			}
775
		}
776
		return null;
777
	}
778