Code Duplication    Length = 4-4 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 4137-4140 (lines=4) @@
4134
				$arcs['extract']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar');
4135
				unset($o);
4136
				$test = $this->procExec('gzip --version', $o, $c);
4137
				if ($c == 0) {
4138
					$arcs['create']['application/x-gzip']  = array('cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz');
4139
					$arcs['extract']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz');
4140
				}
4141
				unset($o);
4142
				$test = $this->procExec('bzip2 --version', $o, $c);
4143
				if ($c == 0) {
@@ 4143-4146 (lines=4) @@
4140
				}
4141
				unset($o);
4142
				$test = $this->procExec('bzip2 --version', $o, $c);
4143
				if ($c == 0) {
4144
					$arcs['create']['application/x-bzip2']  = array('cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz');
4145
					$arcs['extract']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz');
4146
				}
4147
				unset($o);
4148
				$test = $this->procExec('xz --version', $o, $c);
4149
				if ($c == 0) {
@@ 4149-4152 (lines=4) @@
4146
				}
4147
				unset($o);
4148
				$test = $this->procExec('xz --version', $o, $c);
4149
				if ($c == 0) {
4150
					$arcs['create']['application/x-xz']  = array('cmd' => 'tar', 'argc' => '-cJf', 'ext' => 'xz');
4151
					$arcs['extract']['application/x-xz'] = array('cmd' => 'tar', 'argc' => '-xJf', 'ext' => 'xz');
4152
				}
4153
			}
4154
			unset($o);
4155
			$this->procExec('zip -v', $o, $c);