Code Duplication    Length = 4-4 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 4370-4373 (lines=4) @@
4367
				$arcs['extract']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar');
4368
				unset($o);
4369
				$test = $this->procExec('gzip --version', $o, $c);
4370
				if ($c == 0) {
4371
					$arcs['create']['application/x-gzip']  = array('cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz');
4372
					$arcs['extract']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz');
4373
				}
4374
				unset($o);
4375
				$test = $this->procExec('bzip2 --version', $o, $c);
4376
				if ($c == 0) {
@@ 4376-4379 (lines=4) @@
4373
				}
4374
				unset($o);
4375
				$test = $this->procExec('bzip2 --version', $o, $c);
4376
				if ($c == 0) {
4377
					$arcs['create']['application/x-bzip2']  = array('cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz');
4378
					$arcs['extract']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz');
4379
				}
4380
				unset($o);
4381
				$test = $this->procExec('xz --version', $o, $c);
4382
				if ($c == 0) {
@@ 4382-4385 (lines=4) @@
4379
				}
4380
				unset($o);
4381
				$test = $this->procExec('xz --version', $o, $c);
4382
				if ($c == 0) {
4383
					$arcs['create']['application/x-xz']  = array('cmd' => 'tar', 'argc' => '-cJf', 'ext' => 'xz');
4384
					$arcs['extract']['application/x-xz'] = array('cmd' => 'tar', 'argc' => '-xJf', 'ext' => 'xz');
4385
				}
4386
			}
4387
			unset($o);
4388
			$this->procExec('zip -v', $o, $c);