Automattic\WooCommerce\Internal\Admin
Analytics::record_refund_double_count_fix_finished
Record the end of a fix run.
Method of the class: Analytics{}
No Hooks.
Returns
void. Nothing (null).
Usage
$result = Analytics::record_refund_double_count_fix_finished( $state, $result ): void;
- $state(array) (required)
- Tool state at the end of the run.
- $result(string) (required)
- complete or cancelled.
Analytics::record_refund_double_count_fix_finished() Analytics::record refund double count fix finished code WC 11.3.0
private static function record_refund_double_count_fix_finished( array $state, string $result ): void {
self::record_refund_double_count_event(
'fix_finished',
array(
'result' => $result,
'fixed_count' => $state['fixed'],
'unresolved_count' => $state['unresolved'],
'batches' => $state['batches'],
'duration_seconds' => $state['started_at'] > 0 ? max( 0, time() - $state['started_at'] ) : 0,
'max_order_id' => $state['max_order_id'],
'db_engine' => self::get_db_engine(),
)
);
}