@@ -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. |
@@ -290,7 +290,7 @@ |
||
| 290 | 290 | * |
| 291 | 291 | * @since 1.8.12 |
| 292 | 292 | * |
| 293 | - * @return int |
|
| 293 | + * @return double |
|
| 294 | 294 | */ |
| 295 | 295 | public function get_percentage_complete() { |
| 296 | 296 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * @param int $comment_id |
| 446 | 446 | * @param WP_Comment $comment |
| 447 | 447 | * |
| 448 | - * @return mixed |
|
| 448 | + * @return string |
|
| 449 | 449 | */ |
| 450 | 450 | public function __get_comment_author( $author, $comment_id, $comment ) { |
| 451 | 451 | if ( in_array( $comment->comment_type, $this->comment_types ) ) { |
@@ -468,6 +468,7 @@ discard block |
||
| 468 | 468 | * @access public |
| 469 | 469 | * |
| 470 | 470 | * @param array @comment_types |
| 471 | + * @param string[] $comment_types |
|
| 471 | 472 | * |
| 472 | 473 | * @return array |
| 473 | 474 | */ |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * Rename query clauses for new meta table |
| 281 | 281 | * |
| 282 | - * @param $clause |
|
| 282 | + * @param string $clause |
|
| 283 | 283 | * @param $filter |
| 284 | 284 | * |
| 285 | 285 | * @return mixed |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | * @since 2.0.4 |
| 516 | 516 | * @access public |
| 517 | 517 | * |
| 518 | - * @return string |
|
| 518 | + * @return boolean |
|
| 519 | 519 | */ |
| 520 | 520 | public function get_meta_type() { |
| 521 | 521 | return $this->meta_type; |
@@ -1052,7 +1052,7 @@ |
||
| 1052 | 1052 | * @access public |
| 1053 | 1053 | * |
| 1054 | 1054 | * @param string $meta_key Metadata name. Default is empty. |
| 1055 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 1055 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 1056 | 1056 | * |
| 1057 | 1057 | * @return bool False for failure. True for success. |
| 1058 | 1058 | */ |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | * |
| 47 | 47 | * @since 2.2.0 |
| 48 | 48 | * |
| 49 | - * @param string|int $id_or_email |
|
| 49 | + * @param string $id_or_email |
|
| 50 | 50 | * |
| 51 | 51 | * @return bool |
| 52 | 52 | */ |
@@ -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|string $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 | |
@@ -1292,7 +1292,7 @@ discard block |
||
| 1292 | 1292 | * @since 2.2.0 |
| 1293 | 1293 | * |
| 1294 | 1294 | * @param array|integer $price_or_level_id Price level data. |
| 1295 | - * @param boolean|integer $form_id Donation Form ID. |
|
| 1295 | + * @param integer $form_id Donation Form ID. |
|
| 1296 | 1296 | * |
| 1297 | 1297 | * @return boolean |
| 1298 | 1298 | */ |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * |
| 229 | 229 | * @since 1.8.17 |
| 230 | 230 | * |
| 231 | - * @return array|string |
|
| 231 | + * @return boolean |
|
| 232 | 232 | */ |
| 233 | 233 | function give_get_history_session() { |
| 234 | 234 | return (bool) Give()->session->get( 'history_access' ); |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | * |
| 706 | 706 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
| 707 | 707 | * |
| 708 | - * @return bool |
|
| 708 | + * @return false|null |
|
| 709 | 709 | */ |
| 710 | 710 | function give_donation_metabox_menu() { |
| 711 | 711 | |
@@ -983,7 +983,7 @@ discard block |
||
| 983 | 983 | * |
| 984 | 984 | * @since 1.8 |
| 985 | 985 | * |
| 986 | - * @param $form_id |
|
| 986 | + * @param integer $form_id |
|
| 987 | 987 | * |
| 988 | 988 | * @return bool |
| 989 | 989 | */ |
@@ -1090,7 +1090,7 @@ discard block |
||
| 1090 | 1090 | * @param int $id |
| 1091 | 1091 | * @param string $meta_key |
| 1092 | 1092 | * @param mixed $meta_value |
| 1093 | - * @param mixed $prev_value |
|
| 1093 | + * @param string $prev_value |
|
| 1094 | 1094 | * |
| 1095 | 1095 | * @return mixed |
| 1096 | 1096 | */ |
@@ -1349,7 +1349,7 @@ discard block |
||
| 1349 | 1349 | * @since 1.8.13 |
| 1350 | 1350 | * |
| 1351 | 1351 | * @param array $list List of objects or arrays |
| 1352 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1352 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1353 | 1353 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1354 | 1354 | * Default null. |
| 1355 | 1355 | * |
@@ -1779,7 +1779,7 @@ discard block |
||
| 1779 | 1779 | * |
| 1780 | 1780 | * @since 2.1 |
| 1781 | 1781 | * |
| 1782 | - * @param $form_id |
|
| 1782 | + * @param integer $form_id |
|
| 1783 | 1783 | * |
| 1784 | 1784 | * @return bool |
| 1785 | 1785 | */ |
@@ -2167,7 +2167,7 @@ discard block |
||
| 2167 | 2167 | * |
| 2168 | 2168 | * @since 2.2.0 |
| 2169 | 2169 | * |
| 2170 | - * @return object |
|
| 2170 | + * @return Give_Donor |
|
| 2171 | 2171 | */ |
| 2172 | 2172 | function give_get_name_with_title_prefixes( $donor ) { |
| 2173 | 2173 | |