@@ -477,7 +477,7 @@ |
||
477 | 477 | * |
478 | 478 | * @param int $payment_id |
479 | 479 | * |
480 | - * @return int payment_id |
|
480 | + * @return string payment_id |
|
481 | 481 | */ |
482 | 482 | function give_email_tag_payment_id( $payment_id ) { |
483 | 483 | return give_get_payment_number( $payment_id ); |
@@ -713,7 +713,7 @@ |
||
713 | 713 | * @param bool $colon Check if add colon between heading and message. |
714 | 714 | * @param string $color Heading color. |
715 | 715 | * |
716 | - * @return mixed |
|
716 | + * @return string |
|
717 | 717 | */ |
718 | 718 | private function color_message( $heading, $message = '', $colon = true, $color = 'g' ) { |
719 | 719 | // Add colon. |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * |
181 | 181 | * @access private |
182 | 182 | * @global array $give_options |
183 | - * @return bool |
|
183 | + * @return false|null |
|
184 | 184 | */ |
185 | 185 | public function auto_updater() { |
186 | 186 | |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | * @since 1.7 |
768 | 768 | * @access private |
769 | 769 | * |
770 | - * @return void|bool |
|
770 | + * @return false|null |
|
771 | 771 | */ |
772 | 772 | private function __remove_license_key_from_subscriptions(){ |
773 | 773 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * @param $field_args |
226 | 226 | * @param $field |
227 | 227 | * |
228 | - * @return bool |
|
228 | + * @return false|null |
|
229 | 229 | */ |
230 | 230 | function give_format_admin_multilevel_amount( $field_args, $field ) { |
231 | 231 | |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | * @param array $field_args |
376 | 376 | * @param object $field |
377 | 377 | * |
378 | - * @return mixed |
|
378 | + * @return string |
|
379 | 379 | */ |
380 | 380 | function give_sanitize_thousand_separator( $value, $field_args, $field ){ |
381 | 381 | return stripslashes( $value ); |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | * @param array $field_args |
409 | 409 | * @param object $field |
410 | 410 | * |
411 | - * @return mixed |
|
411 | + * @return string |
|
412 | 412 | */ |
413 | 413 | function give_sanitize_price_field_value( $value, $field_args, $field ){ |
414 | 414 | return give_sanitize_amount( $value ); |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | * and redirect back to the donor interface for feedback |
544 | 544 | * |
545 | 545 | * @since 1.7 |
546 | - * @return void|bool |
|
546 | + * @return false|null |
|
547 | 547 | */ |
548 | 548 | function give_remove_donor_email() { |
549 | 549 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | * and redirect back to the donor interface for feedback |
584 | 584 | * |
585 | 585 | * @since 1.7 |
586 | - * @return void|bool |
|
586 | + * @return false|null |
|
587 | 587 | */ |
588 | 588 | function give_set_donor_primary_email() { |
589 | 589 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -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 | */ |
@@ -409,7 +409,7 @@ |
||
409 | 409 | * |
410 | 410 | * @param array $data Array of attributes for a donation form. |
411 | 411 | * |
412 | - * @return mixed False if data isn't passed and class not instantiated for creation, or New Form ID. |
|
412 | + * @return boolean False if data isn't passed and class not instantiated for creation, or New Form ID. |
|
413 | 413 | */ |
414 | 414 | public function create( $data = array() ) { |
415 | 415 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @param array $args An array of form arguments. |
23 | 23 | * |
24 | - * @return string Donation form. |
|
24 | + * @return false|null Donation form. |
|
25 | 25 | */ |
26 | 26 | function give_get_donation_form( $args = array() ) { |
27 | 27 | |
@@ -1359,7 +1359,7 @@ discard block |
||
1359 | 1359 | * |
1360 | 1360 | * @param int $form_id The form ID. |
1361 | 1361 | * |
1362 | - * @return void|bool |
|
1362 | + * @return false|null |
|
1363 | 1363 | */ |
1364 | 1364 | function give_terms_agreement( $form_id ) { |
1365 | 1365 | $form_option = get_post_meta( $form_id, '_give_terms_option', true ); |
@@ -1552,7 +1552,7 @@ discard block |
||
1552 | 1552 | * @param int $form_id The form ID. |
1553 | 1553 | * @param array $args An array of form arguments. |
1554 | 1554 | * |
1555 | - * @return mixed |
|
1555 | + * @return boolean |
|
1556 | 1556 | */ |
1557 | 1557 | function give_show_goal_progress( $form_id, $args ) { |
1558 | 1558 |
@@ -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' ); |