Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2667-2673 (lines=7) @@
2664
		
2665
		$perm = null;
2666
		
2667
		if ($this->access) {
2668
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2669
2670
			if ($perm !== null) {
2671
				return !!$perm;
2672
			}
2673
		}
2674
		
2675
		if ($this->separator != '/') {
2676
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2706-2711 (lines=6) @@
2703
		$path = $this->joinPathCE($dir, $name);
2704
		$perm = null;
2705
		
2706
		if ($this->access) {
2707
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2708
			if ($perm !== null) {
2709
				return !!$perm;
2710
			}
2711
		}
2712
		
2713
		$testPath = $this->separator.$this->relpathCE($path);
2714