Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2697-2703 (lines=7) @@
2694
		
2695
		$perm = null;
2696
		
2697
		if ($this->access) {
2698
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2699
2700
			if ($perm !== null) {
2701
				return !!$perm;
2702
			}
2703
		}
2704
		
2705
		if ($this->separator != '/') {
2706
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2736-2741 (lines=6) @@
2733
		$path = $this->joinPathCE($dir, $name);
2734
		$perm = null;
2735
		
2736
		if ($this->access) {
2737
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2738
			if ($perm !== null) {
2739
				return !!$perm;
2740
			}
2741
		}
2742
		
2743
		$testPath = $this->separator.$this->relpathCE($path);
2744