Code Duplication    Length = 10-10 lines in 2 locations

core/db_classes/EE_Transaction.class.php 1 location

@@ 1091-1100 (lines=10) @@
1088
     * @throws InvalidDataTypeException
1089
     * @throws InvalidInterfaceException
1090
     */
1091
    public function update_based_on_payments()
1092
    {
1093
        EE_Error::doing_it_wrong(
1094
            __CLASS__ . '::' . __FUNCTION__,
1095
            sprintf(
1096
                __('This method is deprecated. Please use "%s" instead', 'event_espresso'),
1097
                'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'
1098
            ),
1099
            '4.6.0'
1100
        );
1101
        /** @type EE_Transaction_Processor $transaction_processor */
1102
        $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
1103
        return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment($this);

core/db_models/EEM_Transaction.model.php 1 location

@@ 275-284 (lines=10) @@
272
     * @return boolean
273
     * @throws \EE_Error
274
     */
275
    public function update_based_on_payments($transaction_obj_or_id, $save_txn = true)
276
    {
277
        EE_Error::doing_it_wrong(
278
            __CLASS__ . '::' . __FUNCTION__,
279
            sprintf(__('This method is deprecated. Please use "%s" instead', 'event_espresso'),
280
                'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'),
281
            '4.6.0'
282
        );
283
        /** @type EE_Transaction_Processor $transaction_processor */
284
        $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
285
286
        return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment(
287
            $this->ensure_is_obj($transaction_obj_or_id)