Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2674-2680 (lines=7) @@
2671
		
2672
		$perm = null;
2673
		
2674
		if ($this->access) {
2675
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2676
2677
			if ($perm !== null) {
2678
				return !!$perm;
2679
			}
2680
		}
2681
		
2682
		if ($this->separator != '/') {
2683
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2713-2718 (lines=6) @@
2710
		$path = $this->joinPathCE($dir, $name);
2711
		$perm = null;
2712
		
2713
		if ($this->access) {
2714
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2715
			if ($perm !== null) {
2716
				return !!$perm;
2717
			}
2718
		}
2719
		
2720
		$testPath = $this->separator.$this->relpathCE($path);
2721