From bb14dcd9954ed1bfc027e3e150fc9e403cffa024 Mon Sep 17 00:00:00 2001 From: Allen Snook Date: Fri, 19 Oct 2018 15:05:40 -0700 Subject: [PATCH] One argument per line in multi argument calls --- .../data-stores/class-wc-admin-notes-data-store.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-notes-data-store.php b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-notes-data-store.php index c33adbd5a1c..aee69ac1fa9 100644 --- a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-notes-data-store.php +++ b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-notes-data-store.php @@ -105,7 +105,8 @@ class WC_Admin_Notes_Data_Store extends WC_Data_Store_WP implements WC_Object_Da if ( $note->get_id() ) { $wpdb->update( - $wpdb->prefix . 'woocommerce_admin_notes', array( + $wpdb->prefix . 'woocommerce_admin_notes', + array( 'name' => $note->get_name(), 'type' => $note->get_type(), 'locale' => $note->get_locale(), @@ -117,7 +118,8 @@ class WC_Admin_Notes_Data_Store extends WC_Data_Store_WP implements WC_Object_Da 'source' => $note->get_source(), 'date_created' => $note->get_date_created(), 'date_reminder' => $note->get_date_reminder(), - ), array( 'note_id' => $note->get_id() ) + ), + array( 'note_id' => $note->get_id() ) ); } @@ -183,7 +185,8 @@ class WC_Admin_Notes_Data_Store extends WC_Data_Store_WP implements WC_Object_Da $wpdb->delete( $wpdb->prefix . 'woocommerce_admin_note_actions', array( 'note_id' => $note->get_id() ) ); foreach ( $note->get_actions( 'edit' ) as $action ) { $wpdb->insert( - $wpdb->prefix . 'woocommerce_admin_note_actions', array( + $wpdb->prefix . 'woocommerce_admin_note_actions', + array( 'note_id' => $note->get_id(), 'name' => $action->name, 'label' => $action->label,