Code Duplication    Length = 6-8 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

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