@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param string $value |
| 66 | 66 | * |
| 67 | - * @return mixed |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | function __give_validate_decimal_separator_setting_field( $value ) { |
| 70 | 70 | $thousand_separator = give_clean( $_POST['thousands_separator'] ); |
@@ -666,6 +666,7 @@ |
||
| 666 | 666 | * Check if Import donation is duplicate |
| 667 | 667 | * |
| 668 | 668 | * @since 1.8.13 |
| 669 | + * @param Give_Donate_Form $form |
|
| 669 | 670 | */ |
| 670 | 671 | function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) { |
| 671 | 672 | $return = false; |
@@ -1157,7 +1157,7 @@ discard block |
||
| 1157 | 1157 | * |
| 1158 | 1158 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
| 1159 | 1159 | * |
| 1160 | - * @return bool |
|
| 1160 | + * @return false|null |
|
| 1161 | 1161 | */ |
| 1162 | 1162 | function give_donation_metabox_menu() { |
| 1163 | 1163 | |
@@ -1540,7 +1540,7 @@ discard block |
||
| 1540 | 1540 | * @param int $id |
| 1541 | 1541 | * @param string $meta_key |
| 1542 | 1542 | * @param mixed $meta_value |
| 1543 | - * @param mixed $prev_value |
|
| 1543 | + * @param string $prev_value |
|
| 1544 | 1544 | * |
| 1545 | 1545 | * @return mixed |
| 1546 | 1546 | */ |
@@ -1747,7 +1747,7 @@ discard block |
||
| 1747 | 1747 | * @since 1.8.13 |
| 1748 | 1748 | * |
| 1749 | 1749 | * @param array $list List of objects or arrays |
| 1750 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1750 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1751 | 1751 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1752 | 1752 | * Default null. |
| 1753 | 1753 | * |
@@ -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 |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * @since 1.0 |
| 303 | 303 | * @since 1.8.16 Add security check |
| 304 | 304 | * |
| 305 | - * @return bool |
|
| 305 | + * @return false|null |
|
| 306 | 306 | */ |
| 307 | 307 | function give_listen_for_failed_payments() { |
| 308 | 308 | |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | * |
| 468 | 468 | * @param int $form_id Give Form ID |
| 469 | 469 | * |
| 470 | - * @return int $earnings Earnings for a certain form |
|
| 470 | + * @return double $earnings Earnings for a certain form |
|
| 471 | 471 | */ |
| 472 | 472 | function give_get_form_earnings_stats( $form_id = 0 ) { |
| 473 | 473 | $give_form = new Give_Donate_Form( $form_id ); |
@@ -737,7 +737,7 @@ discard block |
||
| 737 | 737 | * |
| 738 | 738 | * @param int $form_id ID number of the form to retrieve the minimum price for |
| 739 | 739 | * |
| 740 | - * @return mixed string|int Minimum price of the form |
|
| 740 | + * @return string string|int Minimum price of the form |
|
| 741 | 741 | */ |
| 742 | 742 | function give_get_form_minimum_price( $form_id = 0 ) { |
| 743 | 743 | |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | * @access public |
| 259 | 259 | * @since 1.0 |
| 260 | 260 | * |
| 261 | - * @return mixed string If search is present, false otherwise. |
|
| 261 | + * @return string|false string If search is present, false otherwise. |
|
| 262 | 262 | */ |
| 263 | 263 | public function get_search() { |
| 264 | 264 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @since 1.0 |
| 23 | 23 | * |
| 24 | - * @return array|bool $output Response messages |
|
| 24 | + * @return false|null $output Response messages |
|
| 25 | 25 | */ |
| 26 | 26 | function give_edit_donor( $args ) { |
| 27 | 27 | |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | * |
| 228 | 228 | * @since 1.0 |
| 229 | 229 | * |
| 230 | - * @return int Whether it was a successful deletion. |
|
| 230 | + * @return false|null Whether it was a successful deletion. |
|
| 231 | 231 | */ |
| 232 | 232 | function give_donor_delete( $args ) { |
| 233 | 233 | |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | * |
| 522 | 522 | * @since 1.7 |
| 523 | 523 | * |
| 524 | - * @return bool|null |
|
| 524 | + * @return false|null |
|
| 525 | 525 | */ |
| 526 | 526 | function give_remove_donor_email() { |
| 527 | 527 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -565,7 +565,7 @@ discard block |
||
| 565 | 565 | * |
| 566 | 566 | * @since 1.7 |
| 567 | 567 | * |
| 568 | - * @return bool|null |
|
| 568 | + * @return false|null |
|
| 569 | 569 | */ |
| 570 | 570 | function give_set_donor_primary_email() { |
| 571 | 571 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | * |
| 706 | 706 | * @since 1.0 |
| 707 | 707 | * |
| 708 | - * @return int $earnings Earnings |
|
| 708 | + * @return double $earnings Earnings |
|
| 709 | 709 | */ |
| 710 | 710 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 711 | 711 | |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | * |
| 994 | 994 | * @since 1.0 |
| 995 | 995 | * |
| 996 | - * @return array $user_info User Info Meta Values. |
|
| 996 | + * @return string $user_info User Info Meta Values. |
|
| 997 | 997 | */ |
| 998 | 998 | function give_get_payment_meta_user_info( $payment_id ) { |
| 999 | 999 | $payment = new Give_Payment( $payment_id ); |
@@ -1010,7 +1010,7 @@ discard block |
||
| 1010 | 1010 | * |
| 1011 | 1011 | * @since 1.0 |
| 1012 | 1012 | * |
| 1013 | - * @return int $form_id Form ID. |
|
| 1013 | + * @return string $form_id Form ID. |
|
| 1014 | 1014 | */ |
| 1015 | 1015 | function give_get_payment_form_id( $payment_id ) { |
| 1016 | 1016 | $payment = new Give_Payment( $payment_id ); |