@@ -521,7 +521,7 @@ |
||
| 521 | 521 | * |
| 522 | 522 | * @since 1.8.17 |
| 523 | 523 | * |
| 524 | - * @return bool |
|
| 524 | + * @return false|null |
|
| 525 | 525 | */ |
| 526 | 526 | function give_confirm_email_for_donation_access() { |
| 527 | 527 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * @param string $user_login Username |
| 175 | 175 | * @param string $user_pass Password |
| 176 | 176 | * |
| 177 | - * @return bool |
|
| 177 | + * @return false|null |
|
| 178 | 178 | */ |
| 179 | 179 | function give_log_user_in( $user_id, $user_login, $user_pass ) { |
| 180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * |
| 216 | 216 | * @param array $data Data sent from the register form |
| 217 | 217 | * |
| 218 | - * @return bool |
|
| 218 | + * @return false|null |
|
| 219 | 219 | */ |
| 220 | 220 | function give_process_register_form( $data ) { |
| 221 | 221 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * |
| 302 | 302 | * @since 1.8.17 |
| 303 | 303 | * |
| 304 | - * @return bool |
|
| 304 | + * @return boolean|null |
|
| 305 | 305 | */ |
| 306 | 306 | function give_email_access_login() { |
| 307 | 307 | |
@@ -242,7 +242,7 @@ |
||
| 242 | 242 | * @since 1.0 |
| 243 | 243 | * @access public |
| 244 | 244 | * |
| 245 | - * @return bool |
|
| 245 | + * @return boolean|null |
|
| 246 | 246 | */ |
| 247 | 247 | public function check_for_token() { |
| 248 | 248 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @since 1.0 |
| 110 | 110 | * @access public |
| 111 | 111 | * |
| 112 | - * @param $query_var |
|
| 112 | + * @param string $query_var |
|
| 113 | 113 | * @param $value |
| 114 | 114 | */ |
| 115 | 115 | public function __set( $query_var, $value ) { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @since 1.0 |
| 127 | 127 | * @access public |
| 128 | 128 | * |
| 129 | - * @param $query_var |
|
| 129 | + * @param string $query_var |
|
| 130 | 130 | */ |
| 131 | 131 | public function __unset( $query_var ) { |
| 132 | 132 | unset( $this->args[ $query_var ] ); |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | * @param string $order |
| 468 | 468 | * @param WP_Query $query |
| 469 | 469 | * |
| 470 | - * @return mixed |
|
| 470 | + * @return string |
|
| 471 | 471 | */ |
| 472 | 472 | public function custom_orderby( $order, $query ) { |
| 473 | 473 | |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | * @access public |
| 188 | 188 | * @since 1.0 |
| 189 | 189 | * |
| 190 | - * @return string|bool String if search is present, false otherwise |
|
| 190 | + * @return string|false String if search is present, false otherwise |
|
| 191 | 191 | */ |
| 192 | 192 | public function get_search() { |
| 193 | 193 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -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(); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param $end_date string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` |
| 37 | 37 | * @param $status string|array The sale status(es) to count. Only valid when retrieving global stats |
| 38 | 38 | * |
| 39 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 39 | + * @return string Total amount of donations based on the passed arguments. |
|
| 40 | 40 | */ |
| 41 | 41 | public function get_sales( $form_id = 0, $start_date = false, $end_date = false, $status = 'publish' ) { |
| 42 | 42 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param $end_date string|bool The end date for which we'd like to filter the donations stats. If false, method will use the default end date of `this_month`. |
| 84 | 84 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
| 85 | 85 | * |
| 86 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 86 | + * @return string Total amount of donations based on the passed arguments. |
|
| 87 | 87 | */ |
| 88 | 88 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 89 | 89 | global $wpdb; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @param $end_date string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` |
| 188 | 188 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
| 189 | 189 | * |
| 190 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 190 | + * @return string Total amount of donations based on the passed arguments. |
|
| 191 | 191 | */ |
| 192 | 192 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 193 | 193 | |
@@ -487,7 +487,7 @@ |
||
| 487 | 487 | * |
| 488 | 488 | * @param string $main_file Plugin Main File. |
| 489 | 489 | * |
| 490 | - * @return bool|mixed|string |
|
| 490 | + * @return string |
|
| 491 | 491 | */ |
| 492 | 492 | public function get_plugin_folder_name( $main_file ) { |
| 493 | 493 | // Remove plugin file and get the Add-on's folder name only. |
@@ -999,7 +999,7 @@ |
||
| 999 | 999 | * @access public |
| 1000 | 1000 | * |
| 1001 | 1001 | * @param string $meta_key Metadata name. Default is empty. |
| 1002 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 1002 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 1003 | 1003 | * |
| 1004 | 1004 | * @return bool False for failure. True for success. |
| 1005 | 1005 | */ |