Code Duplication    Length = 5-5 lines in 2 locations

lib/elFinderVolumeFTP.class.php 1 location

@@ 1348-1352 (lines=5) @@
1345
        }
1346
1347
        // check max files size
1348
        if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {
1349
            $this->rmdirRecursive($dir);
1350
1351
            return $this->setError(elFinder::ERROR_ARC_MAXSIZE);
1352
        }
1353
1354
        $extractTo = $this->extractToNewdir; // 'auto', ture or false
1355

lib/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 1134-1138 (lines=5) @@
1131
            }
1132
1133
            // check max files size
1134
            if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {
1135
                $this->delTree($dir);
1136
1137
                return $this->setError(elFinder::ERROR_ARC_MAXSIZE);
1138
            }
1139
1140
            $extractTo = $this->extractToNewdir; // 'auto', ture or false
1141