Code Duplication    Length = 7-9 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 749-757 (lines=9) @@
746
			'hidden'  => false
747
		);
748
		// set files attributes
749
		if (!empty($this->options['attributes']) && is_array($this->options['attributes'])) {
750
			
751
			foreach ($this->options['attributes'] as $a) {
752
				// attributes must contain pattern and at least one rule
753
				if (!empty($a['pattern']) || count($a) > 1) {
754
					$this->attributes[] = $a;
755
				}
756
			}
757
		}
758
759
		if (!empty($this->options['accessControl']) && is_callable($this->options['accessControl'])) {
760
			$this->access = $this->options['accessControl'];
@@ 933-939 (lines=7) @@
930
931
		$this->_checkArchivers();
932
		// manual control archive types to create
933
		if (!empty($this->options['archiveMimes']) && is_array($this->options['archiveMimes'])) {
934
			foreach ($this->archivers['create'] as $mime => $v) {
935
				if (!in_array($mime, $this->options['archiveMimes'])) {
936
					unset($this->archivers['create'][$mime]);
937
				}
938
			}
939
		}
940
		
941
		// manualy add archivers
942
		if (!empty($this->options['archivers']['create']) && is_array($this->options['archivers']['create'])) {