Code Duplication    Length = 4-4 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 4177-4180 (lines=4) @@
4174
				$arcs['extract']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar');
4175
				unset($o);
4176
				$test = $this->procExec('gzip --version', $o, $c);
4177
				if ($c == 0) {
4178
					$arcs['create']['application/x-gzip']  = array('cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz');
4179
					$arcs['extract']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz');
4180
				}
4181
				unset($o);
4182
				$test = $this->procExec('bzip2 --version', $o, $c);
4183
				if ($c == 0) {
@@ 4183-4186 (lines=4) @@
4180
				}
4181
				unset($o);
4182
				$test = $this->procExec('bzip2 --version', $o, $c);
4183
				if ($c == 0) {
4184
					$arcs['create']['application/x-bzip2']  = array('cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz');
4185
					$arcs['extract']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz');
4186
				}
4187
				unset($o);
4188
				$test = $this->procExec('xz --version', $o, $c);
4189
				if ($c == 0) {
@@ 4189-4192 (lines=4) @@
4186
				}
4187
				unset($o);
4188
				$test = $this->procExec('xz --version', $o, $c);
4189
				if ($c == 0) {
4190
					$arcs['create']['application/x-xz']  = array('cmd' => 'tar', 'argc' => '-cJf', 'ext' => 'xz');
4191
					$arcs['extract']['application/x-xz'] = array('cmd' => 'tar', 'argc' => '-xJf', 'ext' => 'xz');
4192
				}
4193
			}
4194
			unset($o);
4195
			$this->procExec('zip -v', $o, $c);