Code Duplication    Length = 4-4 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 4116-4119 (lines=4) @@
4113
				$arcs['extract']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar');
4114
				unset($o);
4115
				$test = $this->procExec('gzip --version', $o, $c);
4116
				if ($c == 0) {
4117
					$arcs['create']['application/x-gzip']  = array('cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz');
4118
					$arcs['extract']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz');
4119
				}
4120
				unset($o);
4121
				$test = $this->procExec('bzip2 --version', $o, $c);
4122
				if ($c == 0) {
@@ 4122-4125 (lines=4) @@
4119
				}
4120
				unset($o);
4121
				$test = $this->procExec('bzip2 --version', $o, $c);
4122
				if ($c == 0) {
4123
					$arcs['create']['application/x-bzip2']  = array('cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz');
4124
					$arcs['extract']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz');
4125
				}
4126
				unset($o);
4127
				$test = $this->procExec('xz --version', $o, $c);
4128
				if ($c == 0) {
@@ 4128-4131 (lines=4) @@
4125
				}
4126
				unset($o);
4127
				$test = $this->procExec('xz --version', $o, $c);
4128
				if ($c == 0) {
4129
					$arcs['create']['application/x-xz']  = array('cmd' => 'tar', 'argc' => '-cJf', 'ext' => 'xz');
4130
					$arcs['extract']['application/x-xz'] = array('cmd' => 'tar', 'argc' => '-xJf', 'ext' => 'xz');
4131
				}
4132
			}
4133
			unset($o);
4134
			$this->procExec('zip -v', $o, $c);