Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1253-1255 (lines=3) @@
1250
	 * @author Dmitry (dio) Levashov
1251
	 **/
1252
	public function ls($hash) {
1253
		if (($dir = $this->dir($hash)) == false || !$dir['read']) {
1254
			return false;
1255
		}
1256
		
1257
		$list = array();
1258
		$path = $this->decode($hash);
@@ 2060-2062 (lines=3) @@
2057
	 * @author Naoki Sawada
2058
	 */
2059
	public function getContentUrl($hash, $options = array()) {
2060
		if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) {
2061
			return false;
2062
		}
2063
		return $file['url'];
2064
	}
2065