Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

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