fixed some docblocks

This commit is contained in:
claudiosmweb 2014-09-02 16:50:19 -03:00
parent 76bccd4ddb
commit 78c7fefe3e
6 changed files with 10 additions and 7 deletions

View File

@ -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 {
}
}
}
}
}

View File

@ -98,7 +98,8 @@ class WC_Admin {
/**
* Preview email template
* @return [type]
*
* @return string
*/
public function preview_emails() {
if ( isset( $_GET['preview_woocommerce_mail'] ) ) {

View File

@ -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 ) );

View File

@ -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;

View File

@ -117,7 +117,8 @@ class WC_Query {
/**
* Get query vars
* @return array()
*
* @return array
*/
public function get_query_vars() {
return $this->query_vars;

0
tests/install-wp-tests.sh Executable file → Normal file
View File