From 78c7fefe3e245dba49dd1a465e38718a77600da8 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Tue, 2 Sep 2014 16:50:19 -0300 Subject: [PATCH] fixed some docblocks --- includes/abstracts/abstract-wc-widget.php | 5 +++-- includes/admin/class-wc-admin.php | 3 ++- includes/class-wc-comments.php | 2 +- includes/class-wc-customer.php | 4 ++-- includes/class-wc-query.php | 3 ++- tests/install-wp-tests.sh | 0 6 files changed, 10 insertions(+), 7 deletions(-) mode change 100755 => 100644 tests/install-wp-tests.sh diff --git a/includes/abstracts/abstract-wc-widget.php b/includes/abstracts/abstract-wc-widget.php index 6daceaf38ba..6d25d83f7e5 100644 --- a/includes/abstracts/abstract-wc-widget.php +++ b/includes/abstracts/abstract-wc-widget.php @@ -60,7 +60,8 @@ abstract class WC_Widget extends WP_Widget { /** * Flush the cache - * @return [type] + * + * @return void */ public function flush_widget_cache() { wp_cache_delete( apply_filters( 'woocommerce_cached_widget_id', $this->widget_id ), 'widget' ); @@ -151,4 +152,4 @@ abstract class WC_Widget extends WP_Widget { } } } -} \ No newline at end of file +} diff --git a/includes/admin/class-wc-admin.php b/includes/admin/class-wc-admin.php index 82e0c97ffb3..2c3b0dec66c 100644 --- a/includes/admin/class-wc-admin.php +++ b/includes/admin/class-wc-admin.php @@ -98,7 +98,8 @@ class WC_Admin { /** * Preview email template - * @return [type] + * + * @return string */ public function preview_emails() { if ( isset( $_GET['preview_woocommerce_mail'] ) ) { diff --git a/includes/class-wc-comments.php b/includes/class-wc-comments.php index 1f14e9f52c3..b7698b8e3a2 100644 --- a/includes/class-wc-comments.php +++ b/includes/class-wc-comments.php @@ -208,7 +208,7 @@ class WC_Comments { /** * Clear transients for a review. * - * @param mixed $comment_id + * @param mixed $post_id */ public static function clear_transients( $post_id ) { delete_transient( 'wc_average_rating_' . absint( $post_id ) ); diff --git a/includes/class-wc-customer.php b/includes/class-wc-customer.php index 05089f281a6..6b7e15f13ad 100644 --- a/includes/class-wc-customer.php +++ b/includes/class-wc-customer.php @@ -418,7 +418,7 @@ class WC_Customer { * Sets session data for the city. * * @access public - * @param mixed $postcode + * @param mixed $city */ public function set_city( $city ) { $this->city = $city; @@ -494,7 +494,7 @@ class WC_Customer { * Sets session data for the city. * * @access public - * @param string $postcode + * @param string $city */ public function set_shipping_city( $city ) { $this->shipping_city = $city; diff --git a/includes/class-wc-query.php b/includes/class-wc-query.php index 3ffc78aba04..716ef76fa61 100644 --- a/includes/class-wc-query.php +++ b/includes/class-wc-query.php @@ -117,7 +117,8 @@ class WC_Query { /** * Get query vars - * @return array() + * + * @return array */ public function get_query_vars() { return $this->query_vars; diff --git a/tests/install-wp-tests.sh b/tests/install-wp-tests.sh old mode 100755 new mode 100644