Code Duplication    Length = 6-6 lines in 2 locations

includes/filerepo/file/LocalFile.php 1 location

@@ 764-769 (lines=6) @@
761
	public function getDescriptionShortUrl() {
762
		$pageId = $this->title->getArticleID();
763
764
		if ( $pageId !== null ) {
765
			$url = $this->repo->makeUrl( [ 'curid' => $pageId ] );
766
			if ( $url !== false ) {
767
				return $url;
768
			}
769
		}
770
		return null;
771
	}
772

includes/filerepo/file/ForeignDBFile.php 1 location

@@ 192-197 (lines=6) @@
189
			]
190
		);
191
192
		if ( $pageId !== false ) {
193
			$url = $this->repo->makeUrl( [ 'curid' => $pageId ] );
194
			if ( $url !== false ) {
195
				return $url;
196
			}
197
		}
198
		return null;
199
	}
200