Code Duplication    Length = 7-7 lines in 2 locations

core/db_classes/EE_Checkin.class.php 1 location

@@ 49-55 (lines=7) @@
46
     * @return EE_Checkin
47
     * @throws EE_Error
48
     */
49
    public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array())
50
    {
51
        $has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone, $date_formats);
52
        return $has_object
53
            ? $has_object
54
            : new self($props_n_values, false, $timezone, $date_formats);
55
    }
56
57
58

core/db_classes/EE_Line_Item.class.php 1 location

@@ 47-53 (lines=7) @@
44
     * @return EE_Line_Item
45
     * @throws EE_Error
46
     */
47
    public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array())
48
    {
49
        $has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone, $date_formats);
50
        return $has_object
51
            ? $has_object
52
            : new self($props_n_values, false, $timezone);
53
    }
54
55
56