@@ -918,7 +918,7 @@ |
||
| 918 | 918 | * @access public |
| 919 | 919 | * |
| 920 | 920 | * @param string $meta_key Metadata name. Default is empty. |
| 921 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 921 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 922 | 922 | * |
| 923 | 923 | * @return bool False for failure. True for success. |
| 924 | 924 | */ |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | |
| 453 | 453 | /** |
| 454 | 454 | * @param $option_value |
| 455 | - * @param $value |
|
| 455 | + * @param boolean $value |
|
| 456 | 456 | * |
| 457 | 457 | * @return string |
| 458 | 458 | */ |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | * |
| 530 | 530 | * @since 1.8.14 |
| 531 | 531 | * |
| 532 | - * @param $file_id |
|
| 532 | + * @param integer $file_id |
|
| 533 | 533 | * |
| 534 | 534 | * @return bool|int |
| 535 | 535 | */ |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @since 1.0 |
| 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 | |
@@ -1538,7 +1538,7 @@ discard block |
||
| 1538 | 1538 | * |
| 1539 | 1539 | * @param int $form_id The form ID. |
| 1540 | 1540 | * |
| 1541 | - * @return bool |
|
| 1541 | + * @return false|null |
|
| 1542 | 1542 | */ |
| 1543 | 1543 | function give_terms_agreement( $form_id ) { |
| 1544 | 1544 | $form_option = give_get_meta( $form_id, '_give_terms_option', true ); |
@@ -1716,7 +1716,7 @@ discard block |
||
| 1716 | 1716 | * @param int $form_id The form ID. |
| 1717 | 1717 | * @param array $args An array of form arguments. |
| 1718 | 1718 | * |
| 1719 | - * @return mixed |
|
| 1719 | + * @return boolean |
|
| 1720 | 1720 | */ |
| 1721 | 1721 | function give_show_goal_progress( $form_id, $args ) { |
| 1722 | 1722 | |
@@ -1736,7 +1736,7 @@ discard block |
||
| 1736 | 1736 | * |
| 1737 | 1737 | * @since 1.8 |
| 1738 | 1738 | * |
| 1739 | - * @param $form_id |
|
| 1739 | + * @param integer $form_id |
|
| 1740 | 1740 | * @param $args |
| 1741 | 1741 | * |
| 1742 | 1742 | * @return mixed|string |
@@ -1777,7 +1777,7 @@ discard block |
||
| 1777 | 1777 | * @param int $form_id The form ID. |
| 1778 | 1778 | * @param array $args An array of form arguments. |
| 1779 | 1779 | * |
| 1780 | - * @return void|bool |
|
| 1780 | + * @return false|null |
|
| 1781 | 1781 | */ |
| 1782 | 1782 | function give_form_content( $form_id, $args ) { |
| 1783 | 1783 | |
@@ -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; |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * Connect and Reconnect Donor with User profile. |
| 90 | 90 | * @todo $address is unnecessary param because we are store address to user. |
| 91 | 91 | * |
| 92 | - * @param object $donor Donor Object. |
|
| 92 | + * @param Give_Donor $donor Donor Object. |
|
| 93 | 93 | * @param array $donor_data Donor Post Variables. |
| 94 | 94 | * @param array $address Address Information. |
| 95 | 95 | * |
@@ -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'] ) ) { |
@@ -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 |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * @since 1.0 |
| 302 | 302 | * @since 1.8.16 Add security check |
| 303 | 303 | * |
| 304 | - * @return bool |
|
| 304 | + * @return false|null |
|
| 305 | 305 | */ |
| 306 | 306 | function give_listen_for_failed_payments() { |
| 307 | 307 | |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | * |
| 742 | 742 | * @param int $form_id ID number of the form to retrieve the minimum price for |
| 743 | 743 | * |
| 744 | - * @return mixed string|int Minimum price of the form |
|
| 744 | + * @return string string|int Minimum price of the form |
|
| 745 | 745 | */ |
| 746 | 746 | function give_get_form_minimum_price( $form_id = 0 ) { |
| 747 | 747 | |