@@ -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. |
@@ -1050,7 +1050,7 @@ discard block |
||
1050 | 1050 | * @access public |
1051 | 1051 | * @since 2.0 |
1052 | 1052 | * |
1053 | - * @return bool |
|
1053 | + * @return false|null |
|
1054 | 1054 | */ |
1055 | 1055 | function give_update_donor_name_on_user_update( $user_id = 0 ) { |
1056 | 1056 | |
@@ -1092,7 +1092,7 @@ discard block |
||
1092 | 1092 | * @param int $user_id User ID. |
1093 | 1093 | * @param WP_User|bool $old_user_data User data. |
1094 | 1094 | * |
1095 | - * @return bool |
|
1095 | + * @return false|null |
|
1096 | 1096 | */ |
1097 | 1097 | function give_update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) { |
1098 | 1098 |
@@ -506,7 +506,7 @@ |
||
506 | 506 | * |
507 | 507 | * @param string $main_file Plugin Main File. |
508 | 508 | * |
509 | - * @return bool|mixed|string |
|
509 | + * @return string |
|
510 | 510 | */ |
511 | 511 | public function get_plugin_folder_name( $main_file ) { |
512 | 512 | // Remove plugin file and get the Add-on's folder name only. |
@@ -259,7 +259,7 @@ |
||
259 | 259 | * @access public |
260 | 260 | * @since 1.0 |
261 | 261 | * |
262 | - * @return mixed string If search is present, false otherwise. |
|
262 | + * @return string|false string If search is present, false otherwise. |
|
263 | 263 | */ |
264 | 264 | public function get_search() { |
265 | 265 | 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 | |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | * |
435 | 435 | * @since 1.7 |
436 | 436 | * |
437 | - * @return bool|null |
|
437 | + * @return false|null |
|
438 | 438 | */ |
439 | 439 | function give_remove_donor_email() { |
440 | 440 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | * |
479 | 479 | * @since 1.7 |
480 | 480 | * |
481 | - * @return bool|null |
|
481 | + * @return false|null |
|
482 | 482 | */ |
483 | 483 | function give_set_donor_primary_email() { |
484 | 484 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | /** |
163 | 163 | * This function is used to delete donor and related donation without redirection. |
164 | 164 | * |
165 | - * @param int|Give_Donor $donor Donor ID or List of Donor IDs. |
|
165 | + * @param Give_Donor $donor Donor ID or List of Donor IDs. |
|
166 | 166 | * @param array $args List of arguments to handle donor and related donation deletion process. |
167 | 167 | * |
168 | 168 | * @type bool delete_donation Delete donor linked donations if set to true. Default is false. |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * @uses api_request() |
92 | 92 | * |
93 | 93 | * @param array $_transient_data Update array build by WordPress. |
94 | - * @return array Modified update array with custom plugin data. |
|
94 | + * @return stdClass Modified update array with custom plugin data. |
|
95 | 95 | */ |
96 | 96 | public function check_update( $_transient_data ) { |
97 | 97 |
@@ -645,7 +645,7 @@ |
||
645 | 645 | * |
646 | 646 | * @param int $form_id |
647 | 647 | * |
648 | - * @return array|string |
|
648 | + * @return string |
|
649 | 649 | */ |
650 | 650 | public function get_preview_email_recipient( $form_id = null ) { |
651 | 651 | $recipients = $this->get_recipient( $form_id ); |
@@ -122,7 +122,7 @@ |
||
122 | 122 | * @param string $email_preview_header |
123 | 123 | * @param Give_Donor_Register_Email $email |
124 | 124 | * |
125 | - * @return bool |
|
125 | + * @return string|null |
|
126 | 126 | */ |
127 | 127 | public function email_preview_header( $email_preview_header, $email ) { |
128 | 128 | // Bailout. |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * @since 2.0 |
234 | 234 | * @access public |
235 | - * @return bool|null |
|
235 | + * @return false|null |
|
236 | 236 | */ |
237 | 237 | public function preview_email() { |
238 | 238 | // Bailout. |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * |
372 | 372 | * @since 2.0 |
373 | 373 | * @access public |
374 | - * @return bool|null |
|
374 | + * @return false|null |
|
375 | 375 | */ |
376 | 376 | public function send_preview_email() { |
377 | 377 | // Bailout. |