Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1243-1245 (lines=3) @@
1240
	 * @author Dmitry (dio) Levashov
1241
	 **/
1242
	public function ls($hash) {
1243
		if (($dir = $this->dir($hash)) == false || !$dir['read']) {
1244
			return false;
1245
		}
1246
		
1247
		$list = array();
1248
		$path = $this->decode($hash);
@@ 2050-2052 (lines=3) @@
2047
	 * @author Naoki Sawada
2048
	 */
2049
	public function getContentUrl($hash, $options = array()) {
2050
		if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) {
2051
			return false;
2052
		}
2053
		return $file['url'];
2054
	}
2055