Code Duplication    Length = 3-4 lines in 2 locations

lib/elFinderVolumeDriver.class.php 2 locations

@@ 1819-1821 (lines=3) @@
1816
	{
1817
	    $path = $hash ? $this->decode($hash) : $this->root;
1818
1819
	    if (($dir = $this->stat($path)) == false || $dir['mime'] != 'directory') {
1820
	        return false;
1821
	    }
1822
1823
	    $dirs = $this->gettree($path, $deep > 0 ? $deep - 1 : $this->treeDeep - 1, $exclude ? $this->decode($exclude) : null);
1824
	    array_unshift($dirs, $dir);
@@ 1931-1934 (lines=4) @@
1928
	 **/
1929
	public function open($hash)
1930
	{
1931
	    if (($file = $this->file($hash)) == false
1932
		|| $file['mime'] == 'directory') {
1933
	        return false;
1934
	    }
1935
1936
	    return $this->fopenCE($this->decode($hash), 'rb');
1937
	}