Code Duplication    Length = 10-10 lines in 2 locations

core/db_classes/EE_Transaction.class.php 1 location

@@ 964-973 (lines=10) @@
961
	 * @return boolean
962
	 * @throws \EE_Error
963
	 */
964
	public function update_based_on_payments()
965
	{
966
		EE_Error::doing_it_wrong(
967
			__CLASS__ . '::' . __FUNCTION__,
968
			sprintf(__('This method is deprecated. Please use "%s" instead', 'event_espresso'),
969
				'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'),
970
			'4.6.0'
971
		);
972
		/** @type EE_Transaction_Processor $transaction_processor */
973
		$transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
974
		return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment($this);
975
	}
976

core/db_models/EEM_Transaction.model.php 1 location

@@ 260-269 (lines=10) @@
257
     * @return boolean
258
     * @throws \EE_Error
259
     */
260
    public function update_based_on_payments($transaction_obj_or_id, $save_txn = true)
261
    {
262
        EE_Error::doing_it_wrong(
263
            __CLASS__ . '::' . __FUNCTION__,
264
            sprintf(__('This method is deprecated. Please use "%s" instead', 'event_espresso'),
265
                'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'),
266
            '4.6.0'
267
        );
268
        /** @type EE_Transaction_Processor $transaction_processor */
269
        $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
270
        
271
        return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment(
272
            $this->ensure_is_obj($transaction_obj_or_id)