Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1267-1269 (lines=3) @@
1264
	 * @author Dmitry (dio) Levashov
1265
	 **/
1266
	public function ls($hash) {
1267
		if (($dir = $this->dir($hash)) == false || !$dir['read']) {
1268
			return false;
1269
		}
1270
		
1271
		$list = array();
1272
		$path = $this->decode($hash);
@@ 2074-2076 (lines=3) @@
2071
	 * @author Naoki Sawada
2072
	 */
2073
	public function getContentUrl($hash, $options = array()) {
2074
		if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) {
2075
			return false;
2076
		}
2077
		return $file['url'];
2078
	}
2079