Code Duplication    Length = 7-7 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

@@ 1276-1282 (lines=7) @@
1273
                    $TKT->set_date_format($incoming_date_formats[0]);
1274
                    $TKT->set_time_format($incoming_date_formats[1]);
1275
                    // set new values
1276
                    foreach ($TKT_values as $field => $value) {
1277
                        if ($field == 'TKT_qty') {
1278
                            $TKT->set_qty($value);
1279
                        } else {
1280
                            $TKT->set($field, $value);
1281
                        }
1282
                    }
1283
                    // if $create_new_TKT is false then we can safely update the existing ticket.  Otherwise we have to create a new ticket.
1284
                    if ($create_new_TKT) {
1285
                        // archive the old ticket first
@@ 1312-1318 (lines=7) @@
1309
                    $TKT->set_time_format($incoming_date_formats[1]);
1310
                    $TKT->set_timezone($evtobj->get_timezone());
1311
                    // set new values
1312
                    foreach ($TKT_values as $field => $value) {
1313
                        if ($field == 'TKT_qty') {
1314
                            $TKT->set_qty($value);
1315
                        } else {
1316
                            $TKT->set($field, $value);
1317
                        }
1318
                    }
1319
                    $update_prices = true;
1320
                }
1321
            }