Code Duplication    Length = 11-11 lines in 2 locations

class/pcltar.lib.php 2 locations

@@ 2217-2227 (lines=11) @@
2214
2215
                    // ----- Trace
2216
                    TrFctMessage(__FILE__, __LINE__, 2, 'Extraction done');
2217
                } else {
2218
                    TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file ' . $v_header['filename'] . ' skipped.');
2219
2220
                    // ----- Jump to next file
2221
                    TrFctMessage(__FILE__, __LINE__, 2, 'Jump to next file');
2222
                    if ($p_tar_mode === 'tar') {
2223
                        fseek($v_tar, ftell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2224
                    } else {
2225
                        gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2226
                    }
2227
                }
2228
            } // ----- Look for file that is not to be unzipped
2229
            else {
2230
                // ----- Trace
@@ 2739-2749 (lines=11) @@
2736
2737
            // ----- Trace
2738
            TrFctMessage(__FILE__, __LINE__, 2, 'Extraction done');
2739
        } else {
2740
            TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file ' . $v_header['filename'] . ' skipped.');
2741
2742
            // ----- Jump to next file
2743
            TrFctMessage(__FILE__, __LINE__, 2, 'Jump to next file');
2744
            if ($p_tar_mode === 'tar') {
2745
                fseek($v_tar, ftell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2746
            } else {
2747
                gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2748
            }
2749
        }
2750
2751
        // ----- Return
2752
        TrFctEnd(__FILE__, __LINE__, $v_result);