Code Duplication    Length = 6-8 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

@@ 1452-1457 (lines=6) @@
1449
1450
					$row++;
1451
				}
1452
			} else {
1453
				$template_args['total_ticket_rows'] = 1;
1454
				/** @type EE_Ticket $ticket */
1455
				$ticket = EE_Registry::instance()->load_model('Ticket')->create_default_object();
1456
				$template_args['ticket_rows'] .= $this->_get_ticket_row( $ticket );
1457
			}
1458
		} else {
1459
			$template_args['time'] = $times[0];
1460
			/** @type EE_Ticket $ticket */
@@ 1458-1465 (lines=8) @@
1455
				$ticket = EE_Registry::instance()->load_model('Ticket')->create_default_object();
1456
				$template_args['ticket_rows'] .= $this->_get_ticket_row( $ticket );
1457
			}
1458
		} else {
1459
			$template_args['time'] = $times[0];
1460
			/** @type EE_Ticket $ticket */
1461
			$ticket = EE_Registry::instance()->load_model('Ticket')->get_all_default_tickets();
1462
			$template_args['ticket_rows'] .= $this->_get_ticket_row( $ticket[1] );
1463
			// NOTE: we're just sending the first default row
1464
			// (decaf can't manage default tickets so this should be sufficient);
1465
		}
1466
1467
		$template_args['event_datetime_help_link'] = $this->_get_help_tab_link('event_editor_event_datetimes_help_tab');
1468
		$template_args['ticket_options_help_link'] = $this->_get_help_tab_link('ticket_options_info');