Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2650-2656 (lines=7) @@
2647
		
2648
		$perm = null;
2649
		
2650
		if ($this->access) {
2651
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2652
2653
			if ($perm !== null) {
2654
				return !!$perm;
2655
			}
2656
		}
2657
		
2658
		if ($this->separator != '/') {
2659
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2689-2694 (lines=6) @@
2686
		$path = $this->joinPathCE($dir, $name);
2687
		$perm = null;
2688
		
2689
		if ($this->access) {
2690
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2691
			if ($perm !== null) {
2692
				return !!$perm;
2693
			}
2694
		}
2695
		
2696
		$testPath = $this->separator.$this->relpathCE($path);
2697