Code Duplication    Length = 5-5 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 2 locations

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