Code Duplication    Length = 7-7 lines in 2 locations

lib/elFinderVolumeDriver.class.php 1 location

@@ 4596-4602 (lines=7) @@
4593
4594
	        $name = $stat['name'];
4595
4596
	        if ($this->doSearchCurrentQuery['excludes']) {
4597
	            foreach ($this->doSearchCurrentQuery['excludes'] as $exclude) {
4598
	                if ($this->stripos($name, $exclude) !== false) {
4599
	                    continue 2;
4600
	                }
4601
	            }
4602
	        }
4603
4604
	        if ((! $mimes || $stat['mime'] !== 'directory') && $this->stripos($name, $q) !== false) {
4605
	            $stat['path'] = $this->path($stat['hash']);

lib/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 127-133 (lines=7) @@
124
	public function localFileSystemSearchIteratorFilter($file, $key, $iterator)
125
	{
126
	    $name = $file->getFilename();
127
	    if ($this->doSearchCurrentQuery['excludes']) {
128
	        foreach ($this->doSearchCurrentQuery['excludes'] as $exclude) {
129
	            if ($this->stripos($name, $exclude) !== false) {
130
	                return false;
131
	            }
132
	        }
133
	    }
134
	    if ($iterator->hasChildren()) {
135
	        if ($this->options['searchExDirReg'] && preg_match($this->options['searchExDirReg'], $key)) {
136
	            return false;