Code Duplication    Length = 5-5 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

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