@@ -812,7 +812,7 @@ |
||
812 | 812 | * @param bool $colon Check if add colon between heading and message. |
813 | 813 | * @param string $color Heading color. |
814 | 814 | * |
815 | - * @return mixed |
|
815 | + * @return string |
|
816 | 816 | */ |
817 | 817 | private function color_message( $heading, $message = '', $colon = true, $color = 'g' ) { |
818 | 818 | // Add colon. |
@@ -890,7 +890,7 @@ discard block |
||
890 | 890 | * @access public |
891 | 891 | * |
892 | 892 | * @param string $meta_key Metadata name. Default is empty. |
893 | - * @param mixed $meta_value Metadata value. |
|
893 | + * @param string $meta_value Metadata value. |
|
894 | 894 | * @param bool $unique Optional. Whether the same key should not be added. Default is false. |
895 | 895 | * |
896 | 896 | * @return bool False for failure. True for success. |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | * @access public |
923 | 923 | * |
924 | 924 | * @param string $meta_key Metadata name. Default is empty. |
925 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
925 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
926 | 926 | * |
927 | 927 | * @return bool False for failure. True for success. |
928 | 928 | */ |
@@ -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 | |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * @access public |
371 | 371 | * |
372 | 372 | * @param string $field ID or email. Default is 'id'. |
373 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
373 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
374 | 374 | * |
375 | 375 | * @return mixed Upon success, an object of the customer. Upon failure, NULL |
376 | 376 | */ |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @access private |
220 | 220 | * @since 1.0 |
221 | 221 | * |
222 | - * @return bool |
|
222 | + * @return false|null |
|
223 | 223 | */ |
224 | 224 | public function auto_updater() { |
225 | 225 | |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | * @access public |
476 | 476 | * @since 1.7 |
477 | 477 | * |
478 | - * @return bool|void |
|
478 | + * @return false|null |
|
479 | 479 | */ |
480 | 480 | public function weekly_license_check() { |
481 | 481 | |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | * @access public |
528 | 528 | * @since 1.7 |
529 | 529 | * |
530 | - * @return bool|void |
|
530 | + * @return false|null |
|
531 | 531 | */ |
532 | 532 | public function weekly_subscription_check() { |
533 | 533 | |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | * @access private |
608 | 608 | * @since 1.7 |
609 | 609 | * |
610 | - * @return bool|void |
|
610 | + * @return false|null |
|
611 | 611 | */ |
612 | 612 | private function __single_subscription_check() { |
613 | 613 | // Do not fire if license key is not set. |
@@ -802,7 +802,7 @@ discard block |
||
802 | 802 | * @access private |
803 | 803 | * @since 1.7 |
804 | 804 | * |
805 | - * @return void|bool |
|
805 | + * @return false|null |
|
806 | 806 | */ |
807 | 807 | private function __remove_license_key_from_subscriptions(){ |
808 | 808 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -463,7 +463,7 @@ |
||
463 | 463 | * @since 1.7 |
464 | 464 | * @access public |
465 | 465 | * |
466 | - * @return bool |
|
466 | + * @return false|null |
|
467 | 467 | */ |
468 | 468 | public function delete_cache() { |
469 | 469 | global $wpdb; |
@@ -530,7 +530,7 @@ |
||
530 | 530 | * |
531 | 531 | * @param int $payment_id |
532 | 532 | * |
533 | - * @return int payment_id |
|
533 | + * @return string payment_id |
|
534 | 534 | */ |
535 | 535 | function give_email_tag_payment_id( $payment_id ) { |
536 | 536 | $payment = new Give_Payment( $payment_id ); |
@@ -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' ); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * @param $field_args |
227 | 227 | * @param $field |
228 | 228 | * |
229 | - * @return bool |
|
229 | + * @return false|null |
|
230 | 230 | */ |
231 | 231 | function give_format_admin_multilevel_amount( $field_args, $field ) { |
232 | 232 | |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | * @param array $field_args |
377 | 377 | * @param object $field |
378 | 378 | * |
379 | - * @return mixed |
|
379 | + * @return string |
|
380 | 380 | */ |
381 | 381 | function give_sanitize_thousand_separator( $value, $field_args, $field ) { |
382 | 382 | return stripslashes( $value ); |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | * @param array $field_args |
410 | 410 | * @param object $field |
411 | 411 | * |
412 | - * @return mixed |
|
412 | + * @return string |
|
413 | 413 | */ |
414 | 414 | function give_sanitize_price_field_value( $value, $field_args, $field ) { |
415 | 415 | return give_sanitize_amount( $value ); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * Used to redirect a user back to the donation form if there are errors present. |
157 | 157 | * |
158 | - * @param array $args |
|
158 | + * @param string $args |
|
159 | 159 | * |
160 | 160 | * @access public |
161 | 161 | * @since 1.0 |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | * |
438 | 438 | * @param int $form_id Give Form ID |
439 | 439 | * |
440 | - * @return int $earnings Earnings for a certain form |
|
440 | + * @return double $earnings Earnings for a certain form |
|
441 | 441 | */ |
442 | 442 | function give_get_form_earnings_stats( $form_id = 0 ) { |
443 | 443 | $give_form = new Give_Donate_Form( $form_id ); |