Code Duplication    Length = 9-9 lines in 2 locations

includes/filerepo/file/File.php 2 locations

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