@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @since: 1.4 |
51 | 51 | * |
52 | - * @return bool |
|
52 | + * @return boolean|null |
|
53 | 53 | */ |
54 | 54 | function give_allow_sessions_for_sysinfo() { |
55 | 55 | if ( is_admin() && ( isset( $_GET['page'] ) && isset( $_GET['tab'] ) ) && ( $_GET['tab'] == 'system_info' && $_GET['page'] == 'give-settings' ) ) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * |
66 | 66 | * @since 1.0 |
67 | 67 | * @uses Give_Session::get() |
68 | - * @return mixed array if errors are present, false if none found |
|
68 | + * @return string array if errors are present, false if none found |
|
69 | 69 | */ |
70 | 70 | function give_get_errors() { |
71 | 71 | return Give()->session->get( 'give_errors' ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * @since 1.0 |
159 | 159 | * @access public |
160 | 160 | * |
161 | - * @param bool|string|int $_id_or_email |
|
161 | + * @param integer $_id_or_email |
|
162 | 162 | * |
163 | 163 | * @return bool|int |
164 | 164 | */ |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * @param int $user_id User ID. |
314 | 314 | * @param WP_User $old_user_data User data. |
315 | 315 | * |
316 | - * @return bool |
|
316 | + * @return false|null |
|
317 | 317 | */ |
318 | 318 | public function update_customer_email_on_user_update( $user_id = 0, $old_user_data ) { |
319 | 319 | |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | * @access public |
363 | 363 | * |
364 | 364 | * @param string $field ID or email. Default is 'id'. |
365 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
365 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
366 | 366 | * |
367 | 367 | * @return mixed Upon success, an object of the customer. Upon failure, NULL |
368 | 368 | */ |
@@ -337,7 +337,7 @@ |
||
337 | 337 | * |
338 | 338 | * @since 1.0 |
339 | 339 | * @uses Give()->session->get() |
340 | - * @return mixed array | false |
|
340 | + * @return string array | false |
|
341 | 341 | */ |
342 | 342 | function give_get_purchase_session() { |
343 | 343 | return Give()->session->get( 'give_purchase' ); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * |
86 | 86 | * @since 1.8 |
87 | 87 | * |
88 | - * @param $setting_tab |
|
88 | + * @param string $setting_tab |
|
89 | 89 | * |
90 | 90 | * @return string |
91 | 91 | */ |
@@ -1283,7 +1283,7 @@ |
||
1283 | 1283 | * |
1284 | 1284 | * @param $field |
1285 | 1285 | * |
1286 | - * @return string |
|
1286 | + * @return integer |
|
1287 | 1287 | */ |
1288 | 1288 | function _give_set_field_give_id_default_value( $field ) { |
1289 | 1289 | return 0; |
@@ -113,7 +113,7 @@ |
||
113 | 113 | /** |
114 | 114 | * Adds the "Donation Form" button above the TinyMCE Editor on add/edit screens. |
115 | 115 | * |
116 | - * @return string|bool |
|
116 | + * @return false|null |
|
117 | 117 | * |
118 | 118 | * @since 1.0 |
119 | 119 | */ |
@@ -464,7 +464,7 @@ |
||
464 | 464 | * |
465 | 465 | * @param WP_Post $payment |
466 | 466 | * |
467 | - * @return mixed |
|
467 | + * @return false|null |
|
468 | 468 | */ |
469 | 469 | function give_offline_payment_receipt_after( $payment ) { |
470 | 470 | // Get payment object. |
@@ -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 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @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`. |
100 | 100 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
101 | 101 | * |
102 | - * @return float|int Total amount of donations based on the passed arguments. |
|
102 | + * @return string Total amount of donations based on the passed arguments. |
|
103 | 103 | */ |
104 | 104 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
105 | 105 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @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` |
220 | 220 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
221 | 221 | * |
222 | - * @return float|int Total amount of donations based on the passed arguments. |
|
222 | + * @return string Total amount of donations based on the passed arguments. |
|
223 | 223 | */ |
224 | 224 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
225 | 225 |