Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1288-1290 (lines=3) @@
1285
	 * @author Dmitry (dio) Levashov
1286
	 **/
1287
	public function ls($hash) {
1288
		if (($dir = $this->dir($hash)) == false || !$dir['read']) {
1289
			return false;
1290
		}
1291
		
1292
		$list = array();
1293
		$path = $this->decode($hash);
@@ 2095-2097 (lines=3) @@
2092
	 * @author Naoki Sawada
2093
	 */
2094
	public function getContentUrl($hash, $options = array()) {
2095
		if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) {
2096
			return false;
2097
		}
2098
		return $file['url'];
2099
	}
2100