Code Duplication    Length = 6-8 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

@@ 1404-1409 (lines=6) @@
1401
1402
					$row++;
1403
				}
1404
			} else {
1405
				$template_args['total_ticket_rows'] = 1;
1406
				/** @type EE_Ticket $ticket */
1407
				$ticket = EE_Registry::instance()->load_model('Ticket')->create_default_object();
1408
				$template_args['ticket_rows'] .= $this->_get_ticket_row( $ticket );
1409
			}
1410
		} else {
1411
			$template_args['time'] = $times[0];
1412
			/** @type EE_Ticket $ticket */
@@ 1410-1417 (lines=8) @@
1407
				$ticket = EE_Registry::instance()->load_model('Ticket')->create_default_object();
1408
				$template_args['ticket_rows'] .= $this->_get_ticket_row( $ticket );
1409
			}
1410
		} else {
1411
			$template_args['time'] = $times[0];
1412
			/** @type EE_Ticket $ticket */
1413
			$ticket = EE_Registry::instance()->load_model('Ticket')->get_all_default_tickets();
1414
			$template_args['ticket_rows'] .= $this->_get_ticket_row( $ticket[1] );
1415
			// NOTE: we're just sending the first default row
1416
			// (decaf can't manage default tickets so this should be sufficient);
1417
		}
1418
1419
		$template_args['event_datetime_help_link'] = $this->_get_help_tab_link('event_editor_event_datetimes_help_tab');
1420
		$template_args['ticket_options_help_link'] = $this->_get_help_tab_link('ticket_options_info');