Code Duplication    Length = 6-7 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 2626-2632 (lines=7) @@
2623
		
2624
		$perm = null;
2625
		
2626
		if ($this->access) {
2627
			$perm = call_user_func($this->access, $name, $path, $this->options['accessControlData'], $this, $isDir);
2628
2629
			if ($perm !== null) {
2630
				return !!$perm;
2631
			}
2632
		}
2633
		
2634
		if ($this->separator != '/') {
2635
			$path = str_replace($this->separator, '/', $this->relpathCE($path));
@@ 2665-2670 (lines=6) @@
2662
		$path = $this->joinPathCE($dir, $name);
2663
		$perm = null;
2664
		
2665
		if ($this->access) {
2666
			$perm = call_user_func($this->access, 'write', $path, $this->options['accessControlData'], $this, $isDir);			
2667
			if ($perm !== null) {
2668
				return !!$perm;
2669
			}
2670
		}
2671
		
2672
		$testPath = $this->separator.$this->relpathCE($path);
2673