Code Duplication    Length = 11-11 lines in 2 locations

class/pcltar.lib.php 2 locations

@@ 2209-2219 (lines=11) @@
2206
2207
                    // ----- Trace
2208
                    TrFctMessage(__FILE__, __LINE__, 2, 'Extraction done');
2209
                } else {
2210
                    TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file ' . $v_header['filename'] . ' skipped.');
2211
2212
                    // ----- Jump to next file
2213
                    TrFctMessage(__FILE__, __LINE__, 2, 'Jump to next file');
2214
                    if ('tar' === $p_tar_mode) {
2215
                        fseek($v_tar, ftell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2216
                    } else {
2217
                        gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2218
                    }
2219
                }
2220
            } // ----- Look for file that is not to be unzipped
2221
            else {
2222
                // ----- Trace
@@ 2716-2726 (lines=11) @@
2713
2714
            // ----- Trace
2715
            TrFctMessage(__FILE__, __LINE__, 2, 'Extraction done');
2716
        } else {
2717
            TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file ' . $v_header['filename'] . ' skipped.');
2718
2719
            // ----- Jump to next file
2720
            TrFctMessage(__FILE__, __LINE__, 2, 'Jump to next file');
2721
            if ('tar' === $p_tar_mode) {
2722
                fseek($v_tar, ftell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2723
            } else {
2724
                gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2725
            }
2726
        }
2727
2728
        // ----- Return
2729
        TrFctEnd(__FILE__, __LINE__, $v_result);