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