Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2636-2642 (lines=7) @@
2633
		
2634
		$perm = null;
2635
		
2636
		if ($this->access) {
2637
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2638
2639
			if ($perm !== null) {
2640
				return !!$perm;
2641
			}
2642
		}
2643
		
2644
		if ($this->separator != '/') {
2645
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2675-2680 (lines=6) @@
2672
		$path = $this->joinPathCE($dir, $name);
2673
		$perm = null;
2674
		
2675
		if ($this->access) {
2676
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2677
			if ($perm !== null) {
2678
				return !!$perm;
2679
			}
2680
		}
2681
		
2682
		$testPath = $this->separator.$this->relpathCE($path);
2683