fix spacing

This commit is contained in:
Rebecca Scott 2021-04-30 17:08:38 +10:00
parent 19f638178b
commit 13dee2f3f6
1 changed files with 4 additions and 4 deletions

View File

@ -42,10 +42,10 @@ register_woocommerce_admin_test_helper_rest_route(
function wca_test_helper_delete_option( $request ) { function wca_test_helper_delete_option( $request ) {
global $wpdb; global $wpdb;
$option_names = explode(',', $request->get_param( 'option_names' )); $option_names = explode( ',', $request->get_param( 'option_names' ) );
$option_names = array_map(function($option_name) { $option_names = array_map( function( $option_name ) {
return "'".$option_name."'"; return "'" . $option_name . "'";
}, $option_names); }, $option_names );
$option_names = implode( ',', $option_names ); $option_names = implode( ',', $option_names );
$query = "delete from {$wpdb->prefix}options where option_name in ({$option_names})"; $query = "delete from {$wpdb->prefix}options where option_name in ({$option_names})";