Code Duplication    Length = 6-6 lines in 2 locations

class/pcltar.lib.php 2 locations

@@ 2051-2056 (lines=6) @@
2048
            // ----- Look if this file need to be extracted
2049
            if ($v_extract_file && (!$v_listing)) {
2050
                // ----- Look for path to remove
2051
                if (('' != $p_remove_path) && (0 === strpos($v_header['filename'], $p_remove_path))) {
2052
                    TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
2053
                    // ----- Remove the path
2054
                    $v_header['filename'] = substr($v_header['filename'], $p_remove_path_size);
2055
                    TrFctMessage(__FILE__, __LINE__, 3, 'Reslting file is ' . $v_header['filename'] . '');
2056
                }
2057
2058
                // ----- Add the path to the file
2059
                if (('./' !== $p_path) && ('/' !== $p_path)) {
@@ 2564-2569 (lines=6) @@
2561
        $p_remove_path_size = strlen($p_remove_path);
2562
2563
        // ----- Look for path to remove
2564
        if (('' != $p_remove_path) && (0 === strpos($v_header['filename'], $p_remove_path))) {
2565
            TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
2566
            // ----- Remove the path
2567
            $v_header['filename'] = substr($v_header['filename'], $p_remove_path_size);
2568
            TrFctMessage(__FILE__, __LINE__, 3, 'Resulting file is ' . $v_header['filename'] . '');
2569
        }
2570
2571
        // ----- Add the path to the file
2572
        if (('./' !== $p_path) && ('/' !== $p_path)) {