Code Duplication    Length = 11-11 lines in 2 locations

lib/elFinderVolumeDriver.class.php 2 locations

@@ 1183-1193 (lines=11) @@
1180
		}
1181
1182
		// manualy add archivers
1183
		if (! empty($this->options['archivers']['create']) && is_array($this->options['archivers']['create'])) {
1184
		    foreach ($this->options['archivers']['create'] as $mime => $conf) {
1185
		        if (strpos($mime, 'application/') === 0
1186
				&& ! empty($conf['cmd'])
1187
				&& isset($conf['argc'])
1188
				&& ! empty($conf['ext'])
1189
				&& ! isset($this->archivers['create'][$mime])) {
1190
		            $this->archivers['create'][$mime] = $conf;
1191
		        }
1192
		    }
1193
		}
1194
1195
	    if (! empty($this->options['archivers']['extract']) && is_array($this->options['archivers']['extract'])) {
1196
	        foreach ($this->options['archivers']['extract'] as $mime => $conf) {
@@ 1195-1205 (lines=11) @@
1192
		    }
1193
		}
1194
1195
	    if (! empty($this->options['archivers']['extract']) && is_array($this->options['archivers']['extract'])) {
1196
	        foreach ($this->options['archivers']['extract'] as $mime => $conf) {
1197
	            if (strpos($mime, 'application/') === 0
1198
				&& ! empty($conf['cmd'])
1199
				&& isset($conf['argc'])
1200
				&& ! empty($conf['ext'])
1201
				&& ! isset($this->archivers['extract'][$mime])) {
1202
	                $this->archivers['extract'][$mime] = $conf;
1203
	            }
1204
	        }
1205
	    }
1206
1207
	    if (! empty($this->options['noSessionCache']) && is_array($this->options['noSessionCache'])) {
1208
	        foreach ($this->options['noSessionCache'] as $_key) {