Code Duplication    Length = 10-10 lines in 2 locations

core/db_classes/EE_Registration.class.php 2 locations

@@ 1611-1620 (lines=10) @@
1608
     * @return EE_Datetime|null
1609
     * @throws EE_Error
1610
     */
1611
    public function get_latest_related_datetime()
1612
    {
1613
        return EEM_Datetime::instance()->get_one(
1614
            array(
1615
                array(
1616
                    'Ticket.Registration.REG_ID' => $this->ID(),
1617
                ),
1618
                'order_by' => array('DTT_EVT_start' => 'DESC'),
1619
            )
1620
        );
1621
    }
1622
1623
@@ 1630-1639 (lines=10) @@
1627
     *
1628
     * @throws EE_Error
1629
     */
1630
    public function get_earliest_related_datetime()
1631
    {
1632
        return EEM_Datetime::instance()->get_one(
1633
            array(
1634
                array(
1635
                    'Ticket.Registration.REG_ID' => $this->ID(),
1636
                ),
1637
                'order_by' => array('DTT_EVT_start' => 'ASC'),
1638
            )
1639
        );
1640
    }
1641
1642