Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2687-2693 (lines=7) @@
2684
		
2685
		$perm = null;
2686
		
2687
		if ($this->access) {
2688
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2689
2690
			if ($perm !== null) {
2691
				return !!$perm;
2692
			}
2693
		}
2694
		
2695
		if ($this->separator != '/') {
2696
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2726-2731 (lines=6) @@
2723
		$path = $this->joinPathCE($dir, $name);
2724
		$perm = null;
2725
		
2726
		if ($this->access) {
2727
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2728
			if ($perm !== null) {
2729
				return !!$perm;
2730
			}
2731
		}
2732
		
2733
		$testPath = $this->separator.$this->relpathCE($path);
2734