Code Duplication    Length = 4-4 lines in 3 locations

lib/elFinderVolumeDriver.class.php 3 locations

@@ 5992-5995 (lines=4) @@
5989
                $arcs['extract']['application/x-tar'] = ['cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar', 'toSpec' => '-C '];
5990
                unset($o);
5991
                $this->procExec('gzip --version', $o, $c);
5992
                if ($c == 0) {
5993
                    $arcs['create']['application/x-gzip'] = ['cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz'];
5994
                    $arcs['extract']['application/x-gzip'] = ['cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz', 'toSpec' => '-C '];
5995
                }
5996
                unset($o);
5997
                $this->procExec('bzip2 --version', $o, $c);
5998
                if ($c == 0) {
@@ 5998-6001 (lines=4) @@
5995
                }
5996
                unset($o);
5997
                $this->procExec('bzip2 --version', $o, $c);
5998
                if ($c == 0) {
5999
                    $arcs['create']['application/x-bzip2'] = ['cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz'];
6000
                    $arcs['extract']['application/x-bzip2'] = ['cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz', 'toSpec' => '-C '];
6001
                }
6002
                unset($o);
6003
                $this->procExec('xz --version', $o, $c);
6004
                if ($c == 0) {
@@ 6004-6007 (lines=4) @@
6001
                }
6002
                unset($o);
6003
                $this->procExec('xz --version', $o, $c);
6004
                if ($c == 0) {
6005
                    $arcs['create']['application/x-xz'] = ['cmd' => 'tar', 'argc' => '-cJf', 'ext' => 'xz'];
6006
                    $arcs['extract']['application/x-xz'] = ['cmd' => 'tar', 'argc' => '-xJf', 'ext' => 'xz', 'toSpec' => '-C '];
6007
                }
6008
            }
6009
            unset($o);
6010
            $this->procExec('zip -v', $o, $c);