@@ -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'] ) ) { |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * |
| 393 | 393 | * @param int|bool $payment_id A given payment |
| 394 | 394 | * |
| 395 | - * @return mixed void|false |
|
| 395 | + * @return false|null void|false |
|
| 396 | 396 | */ |
| 397 | 397 | public function __construct( $payment_id = false ) { |
| 398 | 398 | |
@@ -1106,7 +1106,7 @@ discard block |
||
| 1106 | 1106 | * |
| 1107 | 1107 | * @param string|bool $note The note to add |
| 1108 | 1108 | * |
| 1109 | - * @return bool If the note was specified or not |
|
| 1109 | + * @return false|null If the note was specified or not |
|
| 1110 | 1110 | */ |
| 1111 | 1111 | public function add_note( $note = false ) { |
| 1112 | 1112 | // Bail if no note specified. |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * NOTE: This should not be called directly as it does not make necessary changes to |
| 162 | 162 | * the payment meta and logs. Use give_donor_delete() instead. |
| 163 | 163 | * |
| 164 | - * @param bool|string|int $_id_or_email ID or Email of Donor. |
|
| 164 | + * @param integer $_id_or_email ID or Email of Donor. |
|
| 165 | 165 | * |
| 166 | 166 | * @since 1.0 |
| 167 | 167 | * @access public |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | * @access public |
| 359 | 359 | * |
| 360 | 360 | * @param string $field ID or email. Default is 'id'. |
| 361 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
| 361 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
| 362 | 362 | * |
| 363 | 363 | * @return mixed Upon success, an object of the donor. Upon failure, NULL |
| 364 | 364 | */ |
@@ -393,7 +393,7 @@ |
||
| 393 | 393 | * |
| 394 | 394 | * @since 1.8.11 |
| 395 | 395 | * |
| 396 | - * @return void |
|
| 396 | + * @return false|null |
|
| 397 | 397 | */ |
| 398 | 398 | function give_create_pages() { |
| 399 | 399 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @since 1.8 |
| 42 | 42 | * |
| 43 | - * @return bool |
|
| 43 | + * @return false|null |
|
| 44 | 44 | */ |
| 45 | 45 | function give_redirect_to_clean_url_admin_pages() { |
| 46 | 46 | // Give admin pages. |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | * @access public |
| 990 | 990 | * @since 2.0 |
| 991 | 991 | * |
| 992 | - * @return bool |
|
| 992 | + * @return false|null |
|
| 993 | 993 | */ |
| 994 | 994 | function give_update_donor_name_on_user_update( $user_id = 0 ) { |
| 995 | 995 | |
@@ -1029,7 +1029,7 @@ discard block |
||
| 1029 | 1029 | * @param int $user_id User ID. |
| 1030 | 1030 | * @param WP_User|bool $old_user_data User data. |
| 1031 | 1031 | * |
| 1032 | - * @return bool |
|
| 1032 | + * @return false|null |
|
| 1033 | 1033 | */ |
| 1034 | 1034 | function give_update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) { |
| 1035 | 1035 | |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | /** |
| 507 | 507 | * Get donor email html. |
| 508 | 508 | * |
| 509 | - * @param object $payment Contains all the data of the payment. |
|
| 509 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
| 510 | 510 | * |
| 511 | 511 | * @access public |
| 512 | 512 | * @since 1.0 |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | /** |
| 535 | 535 | * Get Row Actions |
| 536 | 536 | * |
| 537 | - * @param object $payment Payment Data. |
|
| 537 | + * @param Give_Payment $payment Payment Data. |
|
| 538 | 538 | * |
| 539 | 539 | * @since 1.6 |
| 540 | 540 | * |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | /** |
| 656 | 656 | * Get donor html. |
| 657 | 657 | * |
| 658 | - * @param object $payment Contains all the data of the payment. |
|
| 658 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
| 659 | 659 | * |
| 660 | 660 | * @access public |
| 661 | 661 | * @since 1.0 |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @param string $cache_key |
| 123 | 123 | * @param bool $custom_key |
| 124 | - * @param mixed $query_args |
|
| 124 | + * @param string $query_args |
|
| 125 | 125 | * |
| 126 | 126 | * @return mixed |
| 127 | 127 | */ |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @param bool $force If set to true then all cached values will be delete instead of only expired |
| 239 | 239 | * |
| 240 | - * @return bool |
|
| 240 | + * @return false|null |
|
| 241 | 241 | */ |
| 242 | 242 | public static function delete_all_expired( $force = false ) { |
| 243 | 243 | global $wpdb; |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | * @since 2.0 |
| 670 | 670 | * @access private |
| 671 | 671 | * |
| 672 | - * @param $group |
|
| 672 | + * @param string $group |
|
| 673 | 673 | * |
| 674 | 674 | * @return mixed |
| 675 | 675 | */ |
@@ -521,7 +521,7 @@ |
||
| 521 | 521 | * |
| 522 | 522 | * @since 1.8.17 |
| 523 | 523 | * |
| 524 | - * @return bool |
|
| 524 | + * @return false|null |
|
| 525 | 525 | */ |
| 526 | 526 | function give_confirm_email_for_donation_access() { |
| 527 | 527 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * @param string $user_login Username |
| 175 | 175 | * @param string $user_pass Password |
| 176 | 176 | * |
| 177 | - * @return bool |
|
| 177 | + * @return false|null |
|
| 178 | 178 | */ |
| 179 | 179 | function give_log_user_in( $user_id, $user_login, $user_pass ) { |
| 180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * |
| 216 | 216 | * @param array $data Data sent from the register form |
| 217 | 217 | * |
| 218 | - * @return bool |
|
| 218 | + * @return false|null |
|
| 219 | 219 | */ |
| 220 | 220 | function give_process_register_form( $data ) { |
| 221 | 221 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * |
| 302 | 302 | * @since 1.8.17 |
| 303 | 303 | * |
| 304 | - * @return bool |
|
| 304 | + * @return boolean|null |
|
| 305 | 305 | */ |
| 306 | 306 | function give_email_access_login() { |
| 307 | 307 | |