Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1369-1371 (lines=3) @@
1366
	 * @author Dmitry (dio) Levashov
1367
	 **/
1368
	public function ls($hash) {
1369
		if (($dir = $this->dir($hash)) == false || !$dir['read']) {
1370
			return false;
1371
		}
1372
		
1373
		$list = array();
1374
		$path = $this->decode($hash);
@@ 2180-2182 (lines=3) @@
2177
	 * @author Naoki Sawada
2178
	 */
2179
	public function getContentUrl($hash, $options = array()) {
2180
		if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) {
2181
			return false;
2182
		}
2183
		return $file['url'];
2184
	}
2185