Code Duplication    Length = 10-14 lines in 2 locations

core/db_models/EEM_Transaction.model.php 1 location

@@ 309-318 (lines=10) @@
306
     * @return boolean
307
     * @throws \EE_Error
308
     */
309
    public function update_based_on_payments($transaction_obj_or_id, $save_txn = true)
310
    {
311
        EE_Error::doing_it_wrong(
312
            __CLASS__ . '::' . __FUNCTION__,
313
            sprintf(
314
                __('This method is deprecated. Please use "%s" instead', 'event_espresso'),
315
                'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'
316
            ),
317
            '4.6.0'
318
        );
319
        /** @type EE_Transaction_Processor $transaction_processor */
320
        $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
321

core/db_classes/EE_Transaction.class.php 1 location

@@ 1256-1269 (lines=14) @@
1253
     * @throws InvalidDataTypeException
1254
     * @throws InvalidInterfaceException
1255
     */
1256
    public function update_based_on_payments()
1257
    {
1258
        EE_Error::doing_it_wrong(
1259
            __CLASS__ . '::' . __FUNCTION__,
1260
            sprintf(
1261
                __('This method is deprecated. Please use "%s" instead', 'event_espresso'),
1262
                'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'
1263
            ),
1264
            '4.6.0'
1265
        );
1266
        /** @type EE_Transaction_Processor $transaction_processor */
1267
        $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
1268
        return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment($this);
1269
    }
1270
1271
1272
    /**