From 2d4b7356df940236d1acdb6bd32c3bd8e49b1a3b Mon Sep 17 00:00:00 2001 From: Jeremy Pry Date: Fri, 18 Aug 2017 12:18:19 -0400 Subject: [PATCH] Update some docblocks with proper parameters --- .../abstract-wc-order-data-store-cpt.php | 16 ++++++++-------- .../class-wc-order-data-store-cpt.php | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/includes/data-stores/abstract-wc-order-data-store-cpt.php b/includes/data-stores/abstract-wc-order-data-store-cpt.php index 4ba1553ed87..5cc063748e4 100644 --- a/includes/data-stores/abstract-wc-order-data-store-cpt.php +++ b/includes/data-stores/abstract-wc-order-data-store-cpt.php @@ -210,8 +210,8 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme /** * Read order data. Can be overridden by child classes to load other props. * - * @param WC_Order - * @param object $post_object + * @param WC_Order $order + * @param object $post_object * @since 3.0.0 */ protected function read_order_data( &$order, $post_object ) { @@ -278,7 +278,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme /** * Clear any caches. * - * @param WC_Order + * @param WC_Order $order * @since 3.0.0 */ protected function clear_caches( &$order ) { @@ -323,8 +323,8 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme /** * Remove all line items (products, coupons, shipping, taxes) from the order. * - * @param WC_Order - * @param string $type Order item type. Default null. + * @param WC_Order $order + * @param string $type Order item type. Default null. */ public function delete_items( $order, $type = null ) { global $wpdb; @@ -341,7 +341,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme /** * Get token ids for an order. * - * @param WC_Order + * @param WC_Order $order * @return array */ public function get_payment_token_ids( $order ) { @@ -352,8 +352,8 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme /** * Update token ids for an order. * - * @param WC_Order - * @param array $token_ids + * @param WC_Order $order + * @param array $token_ids */ public function update_payment_token_ids( $order, $token_ids ) { update_post_meta( $order->get_id(), '_payment_tokens', $token_ids ); diff --git a/includes/data-stores/class-wc-order-data-store-cpt.php b/includes/data-stores/class-wc-order-data-store-cpt.php index 311653f9f68..150dfeeaa46 100644 --- a/includes/data-stores/class-wc-order-data-store-cpt.php +++ b/includes/data-stores/class-wc-order-data-store-cpt.php @@ -82,8 +82,8 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement /** * Read order data. Can be overridden by child classes to load other props. * - * @param WC_Order - * @param object $post_object + * @param WC_Order $order + * @param object $post_object * @since 3.0.0 */ protected function read_order_data( &$order, $post_object ) { @@ -155,7 +155,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement /** * Helper method that updates all the post meta for an order based on it's settings in the WC_Order class. * - * @param WC_Order + * @param WC_Order $order * @since 3.0.0 */ protected function update_post_meta( &$order ) { @@ -270,7 +270,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement /** * Get amount already refunded. * - * @param WC_Order + * @param WC_Order $order * @return string */ public function get_total_refunded( $order ) { @@ -290,7 +290,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement /** * Get the total tax refunded. * - * @param WC_Order + * @param WC_Order $order * @return float */ public function get_total_tax_refunded( $order ) { @@ -311,7 +311,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement /** * Get the total shipping refunded. * - * @param WC_Order + * @param WC_Order $order * @return float */ public function get_total_shipping_refunded( $order ) {