Code Duplication    Length = 9-9 lines in 2 locations

includes/filerepo/file/File.php 2 locations

@@ 1713-1721 (lines=9) @@
1710
	 * @param bool|string $suffix If not false, the name of a thumbnail file
1711
	 * @return string
1712
	 */
1713
	function getVirtualUrl( $suffix = false ) {
1714
		$this->assertRepoDefined();
1715
		$path = $this->repo->getVirtualUrl() . '/public/' . $this->getUrlRel();
1716
		if ( $suffix !== false ) {
1717
			$path .= '/' . rawurlencode( $suffix );
1718
		}
1719
1720
		return $path;
1721
	}
1722
1723
	/**
1724
	 * Get the public zone virtual URL for an archived version source file
@@ 1747-1755 (lines=9) @@
1744
	 * @param bool|string $suffix If not false, the name of a thumbnail file
1745
	 * @return string
1746
	 */
1747
	function getThumbVirtualUrl( $suffix = false ) {
1748
		$this->assertRepoDefined();
1749
		$path = $this->repo->getVirtualUrl() . '/thumb/' . $this->getUrlRel();
1750
		if ( $suffix !== false ) {
1751
			$path .= '/' . rawurlencode( $suffix );
1752
		}
1753
1754
		return $path;
1755
	}
1756
1757
	/**
1758
	 * @return bool