Code Duplication    Length = 7-7 lines in 2 locations

class/pcltar.lib.php 2 locations

@@ 1274-1280 (lines=7) @@
1271
            }
1272
1273
            // ----- Call the adding fct inside the tar
1274
            if (($v_result = PclTarHandleAddList($v_temp_tar, $p_list, $p_mode, $p_list_detail, $p_add_dir, $p_remove_dir)) == 1) {
1275
                // ----- Call the footer of the tar archive
1276
                $v_result = PclTarHandleFooter($v_temp_tar, $p_mode);
1277
            }
1278
1279
            // ----- Close the files
1280
            gzclose($p_tar);
1281
            gzclose($v_temp_tar);
1282
1283
            // ----- Unlink tar file
@@ 1324-1330 (lines=7) @@
1321
                TrFctMessage(__FILE__, __LINE__, 4, 'Position after :' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1322
1323
                // ----- Call the adding fct inside the tar
1324
                if (($v_result = PclTarHandleAddList($p_tar, $p_list, $p_mode, $p_list_detail, $p_add_dir, $p_remove_dir)) == 1) {
1325
                    // ----- Call the footer of the tar archive
1326
                    $v_result = PclTarHandleFooter($p_tar, $p_mode);
1327
                }
1328
1329
                // ----- Close the tarfile
1330
                fclose($p_tar);
1331
            } // ----- Look for unknown type
1332
            else {
1333
                // ----- Error log