@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @param string $cache_key |
| 123 | 123 | * @param bool $custom_key |
| 124 | - * @param mixed $query_args |
|
| 124 | + * @param string $query_args |
|
| 125 | 125 | * |
| 126 | 126 | * @return mixed |
| 127 | 127 | */ |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @param bool $force If set to true then all cached values will be delete instead of only expired |
| 239 | 239 | * |
| 240 | - * @return bool |
|
| 240 | + * @return false|null |
|
| 241 | 241 | */ |
| 242 | 242 | public static function delete_all_expired( $force = false ) { |
| 243 | 243 | global $wpdb; |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | * @since 2.0 |
| 670 | 670 | * @access private |
| 671 | 671 | * |
| 672 | - * @param $group |
|
| 672 | + * @param string $group |
|
| 673 | 673 | * |
| 674 | 674 | * @return mixed |
| 675 | 675 | */ |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * NOTE: This should not be called directly as it does not make necessary changes to |
| 208 | 208 | * the payment meta and logs. Use give_donor_delete() instead. |
| 209 | 209 | * |
| 210 | - * @param bool|string|int $_id_or_email ID or Email of Donor. |
|
| 210 | + * @param integer $_id_or_email ID or Email of Donor. |
|
| 211 | 211 | * |
| 212 | 212 | * @since 1.0 |
| 213 | 213 | * @access public |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | * @access public |
| 408 | 408 | * |
| 409 | 409 | * @param string $field ID or email. Default is 'id'. |
| 410 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
| 410 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
| 411 | 411 | * |
| 412 | 412 | * @return mixed Upon success, an object of the donor. Upon failure, NULL |
| 413 | 413 | */ |
@@ -512,7 +512,7 @@ |
||
| 512 | 512 | * @since 1.7 |
| 513 | 513 | * @access public |
| 514 | 514 | * |
| 515 | - * @return bool |
|
| 515 | + * @return false|null |
|
| 516 | 516 | */ |
| 517 | 517 | public function delete_cache() { |
| 518 | 518 | // Add log related keys to delete. |
@@ -397,7 +397,7 @@ |
||
| 397 | 397 | * |
| 398 | 398 | * @since 1.8.11 |
| 399 | 399 | * |
| 400 | - * @return void |
|
| 400 | + * @return false|null |
|
| 401 | 401 | */ |
| 402 | 402 | function give_create_pages() { |
| 403 | 403 | |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | * metadata entries with the specified value. |
| 208 | 208 | * Otherwise, update all entries. |
| 209 | 209 | * |
| 210 | - * @return mixed |
|
| 210 | + * @return null|boolean |
|
| 211 | 211 | */ |
| 212 | 212 | function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) { |
| 213 | 213 | // Bailout. |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * @since 1.0 |
| 108 | 108 | * @access public |
| 109 | 109 | * |
| 110 | - * @param $query_var |
|
| 110 | + * @param string $query_var |
|
| 111 | 111 | * @param $value |
| 112 | 112 | */ |
| 113 | 113 | public function __set( $query_var, $value ) { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @since 1.0 |
| 125 | 125 | * @access public |
| 126 | 126 | * |
| 127 | - * @param $query_var |
|
| 127 | + * @param string $query_var |
|
| 128 | 128 | */ |
| 129 | 129 | public function __unset( $query_var ) { |
| 130 | 130 | unset( $this->args[ $query_var ] ); |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | * @param string $order |
| 469 | 469 | * @param WP_Query $query |
| 470 | 470 | * |
| 471 | - * @return mixed |
|
| 471 | + * @return string |
|
| 472 | 472 | */ |
| 473 | 473 | public function custom_orderby( $order, $query ) { |
| 474 | 474 | |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | * @uses Give_API::invalid_key() |
| 327 | 327 | * @uses Give_API::invalid_auth() |
| 328 | 328 | * @since 1.1 |
| 329 | - * @return bool |
|
| 329 | + * @return false|null |
|
| 330 | 330 | */ |
| 331 | 331 | private function validate_request() { |
| 332 | 332 | global $wp_query; |
@@ -722,7 +722,7 @@ discard block |
||
| 722 | 722 | * |
| 723 | 723 | * @param array $args Arguments to override defaults |
| 724 | 724 | * |
| 725 | - * @return array $dates |
|
| 725 | + * @return integer|null $dates |
|
| 726 | 726 | */ |
| 727 | 727 | public function get_dates( $args = array() ) { |
| 728 | 728 | $dates = array(); |
@@ -505,7 +505,7 @@ |
||
| 505 | 505 | * |
| 506 | 506 | * @param string $main_file Plugin Main File. |
| 507 | 507 | * |
| 508 | - * @return bool|mixed|string |
|
| 508 | + * @return string |
|
| 509 | 509 | */ |
| 510 | 510 | public function get_plugin_folder_name( $main_file ) { |
| 511 | 511 | // Remove plugin file and get the Add-on's folder name only. |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @param $url |
| 74 | 74 | * |
| 75 | - * @return mixed |
|
| 75 | + * @return string |
|
| 76 | 76 | */ |
| 77 | 77 | public function give_update_cmb_meta_box_url( $url ) { |
| 78 | 78 | // Path to Give's CMB |
@@ -1009,7 +1009,7 @@ discard block |
||
| 1009 | 1009 | * @since 1.0 |
| 1010 | 1010 | * |
| 1011 | 1011 | * @param array $field_arr |
| 1012 | - * @param array $saved_value |
|
| 1012 | + * @param string|boolean $saved_value |
|
| 1013 | 1013 | * |
| 1014 | 1014 | * @return void |
| 1015 | 1015 | */ |
@@ -1163,7 +1163,7 @@ discard block |
||
| 1163 | 1163 | * @params $string text |
| 1164 | 1164 | * @params $filter array |
| 1165 | 1165 | * |
| 1166 | - * @return text $string |
|
| 1166 | + * @return string $string |
|
| 1167 | 1167 | */ |
| 1168 | 1168 | function give_slug_to_title( $string, $filters = array() ) { |
| 1169 | 1169 | |