Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1301-1303 (lines=3) @@
1298
	 * @author Dmitry (dio) Levashov
1299
	 **/
1300
	public function ls($hash) {
1301
		if (($dir = $this->dir($hash)) == false || !$dir['read']) {
1302
			return false;
1303
		}
1304
		
1305
		$list = array();
1306
		$path = $this->decode($hash);
@@ 2108-2110 (lines=3) @@
2105
	 * @author Naoki Sawada
2106
	 */
2107
	public function getContentUrl($hash, $options = array()) {
2108
		if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) {
2109
			return false;
2110
		}
2111
		return $file['url'];
2112
	}
2113