Code Duplication    Length = 5-5 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

@@ 1607-1611 (lines=5) @@
1604
                    $template_args['ticket_rows'] .= $this->_get_ticket_row($ticket, false, $row);
1605
                    $row++;
1606
                }
1607
            } else {
1608
                $template_args['total_ticket_rows'] = 1;
1609
                /** @type EE_Ticket $ticket */
1610
                $ticket = EE_Registry::instance()->load_model('Ticket')->create_default_object();
1611
                $template_args['ticket_rows'] .= $this->_get_ticket_row($ticket);
1612
            }
1613
        } else {
1614
            $template_args['time'] = $times[0];
@@ 1613-1617 (lines=5) @@
1610
                $ticket = EE_Registry::instance()->load_model('Ticket')->create_default_object();
1611
                $template_args['ticket_rows'] .= $this->_get_ticket_row($ticket);
1612
            }
1613
        } else {
1614
            $template_args['time'] = $times[0];
1615
            /** @type EE_Ticket $ticket */
1616
            $ticket = EE_Registry::instance()->load_model('Ticket')->get_all_default_tickets();
1617
            $template_args['ticket_rows'] .= $this->_get_ticket_row($ticket[1]);
1618
            // NOTE: we're just sending the first default row
1619
            // (decaf can't manage default tickets so this should be sufficient);
1620
        }