phpcs sniff fixes for wc-order-functions.php

This commit is contained in:
Ron Rennick 2019-01-18 23:36:46 -04:00
parent ab6012fa3f
commit d826aba858
1 changed files with 4 additions and 3 deletions

View File

@ -294,7 +294,6 @@ function wc_register_order_type( $type, $args = array() ) {
/**
* Return the count of processing orders.
*
* @access public
* @return int
*/
function wc_processing_order_count() {
@ -907,13 +906,15 @@ function wc_get_order_note( $data ) {
}
return (object) apply_filters(
'woocommerce_get_order_note', array(
'woocommerce_get_order_note',
array(
'id' => (int) $data->comment_ID,
'date_created' => wc_string_to_datetime( $data->comment_date ),
'content' => $data->comment_content,
'customer_note' => (bool) get_comment_meta( $data->comment_ID, 'is_customer_note', true ),
'added_by' => __( 'WooCommerce', 'woocommerce' ) === $data->comment_author ? 'system' : $data->comment_author,
), $data
),
$data
);
}