@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | * @param int $comment_id |
440 | 440 | * @param WP_Comment $comment |
441 | 441 | * |
442 | - * @return mixed |
|
442 | + * @return string |
|
443 | 443 | */ |
444 | 444 | public function __get_comment_author( $author, $comment_id, $comment ) { |
445 | 445 | if ( in_array( $comment->comment_type, $this->comment_types ) ) { |
@@ -462,6 +462,7 @@ discard block |
||
462 | 462 | * @access public |
463 | 463 | * |
464 | 464 | * @param array @comment_types |
465 | + * @param string[] $comment_types |
|
465 | 466 | * |
466 | 467 | * @return array |
467 | 468 | */ |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * NOTE: This should not be called directly as it does not make necessary changes to |
209 | 209 | * the payment meta and logs. Use give_donor_delete() instead. |
210 | 210 | * |
211 | - * @param bool|string|int $_id_or_email ID or Email of Donor. |
|
211 | + * @param integer $_id_or_email ID or Email of Donor. |
|
212 | 212 | * |
213 | 213 | * @since 1.0 |
214 | 214 | * @access public |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | * @access public |
409 | 409 | * |
410 | 410 | * @param string $field ID or email. Default is 'id'. |
411 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
411 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
412 | 412 | * |
413 | 413 | * @return mixed Upon success, an object of the donor. Upon failure, NULL |
414 | 414 | */ |
@@ -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; |
@@ -1077,7 +1077,7 @@ |
||
1077 | 1077 | * @access public |
1078 | 1078 | * |
1079 | 1079 | * @param string $meta_key Metadata name. Default is empty. |
1080 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
1080 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
1081 | 1081 | * |
1082 | 1082 | * @return bool False for failure. True for success. |
1083 | 1083 | */ |
@@ -204,7 +204,7 @@ |
||
204 | 204 | * @since 1.0 |
205 | 205 | * @access public |
206 | 206 | * |
207 | - * @return bool |
|
207 | + * @return boolean|null |
|
208 | 208 | */ |
209 | 209 | public function check_for_token() { |
210 | 210 |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | * @access private |
813 | 813 | * @since 1.7 |
814 | 814 | * |
815 | - * @return bool |
|
815 | + * @return false|null |
|
816 | 816 | */ |
817 | 817 | private function __remove_license_key_from_subscriptions() { |
818 | 818 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | * @param $plugin_data |
848 | 848 | * @param $status |
849 | 849 | * |
850 | - * @return bool |
|
850 | + * @return false|null |
|
851 | 851 | */ |
852 | 852 | public function plugin_page_notices( $plugin_file, $plugin_data, $status ) { |
853 | 853 | // Bailout. |
@@ -869,7 +869,7 @@ discard block |
||
869 | 869 | * |
870 | 870 | * @since 1.8.7 |
871 | 871 | * @access public |
872 | - * @return array |
|
872 | + * @return string |
|
873 | 873 | */ |
874 | 874 | public function license_state_message() { |
875 | 875 | $message_data = array(); |
@@ -513,7 +513,7 @@ |
||
513 | 513 | * @since 1.7 |
514 | 514 | * @access public |
515 | 515 | * |
516 | - * @return bool |
|
516 | + * @return false|null |
|
517 | 517 | */ |
518 | 518 | public function delete_cache() { |
519 | 519 | // Add log related keys to delete. |
@@ -403,7 +403,7 @@ |
||
403 | 403 | * @since 2.2.0 |
404 | 404 | * @access public |
405 | 405 | * |
406 | - * @return string|bool Formatted expiration date string. |
|
406 | + * @return string|false Formatted expiration date string. |
|
407 | 407 | */ |
408 | 408 | public function get_session_expiration() { |
409 | 409 | return $this->has_session() ? $this->session_expiration :false; |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * |
153 | 153 | * Used to redirect a user back to the donation form if there are errors present. |
154 | 154 | * |
155 | - * @param array|string $args |
|
155 | + * @param string $args |
|
156 | 156 | * |
157 | 157 | * @access public |
158 | 158 | * @since 1.0 |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * @since 1.0 |
299 | 299 | * @since 1.8.16 Add security check |
300 | 300 | * |
301 | - * @return bool |
|
301 | + * @return false|null |
|
302 | 302 | */ |
303 | 303 | function give_listen_for_failed_payments() { |
304 | 304 | |
@@ -1289,7 +1289,7 @@ discard block |
||
1289 | 1289 | * @since 2.2.0 |
1290 | 1290 | * |
1291 | 1291 | * @param array|integer $price_or_level_id Price level data. |
1292 | - * @param boolean|integer $form_id Donation Form ID. |
|
1292 | + * @param integer $form_id Donation Form ID. |
|
1293 | 1293 | * |
1294 | 1294 | * @return boolean |
1295 | 1295 | */ |
@@ -1393,7 +1393,7 @@ discard block |
||
1393 | 1393 | * |
1394 | 1394 | * @since 2.2.0 |
1395 | 1395 | * |
1396 | - * @return object |
|
1396 | + * @return Give_Donor |
|
1397 | 1397 | */ |
1398 | 1398 | function give_get_name_with_title_prefixes( $donor ) { |
1399 | 1399 | |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | * |
1439 | 1439 | * @since 2.2.0 |
1440 | 1440 | * |
1441 | - * @return array |
|
1441 | + * @return string|boolean |
|
1442 | 1442 | */ |
1443 | 1443 | function give_get_default_title_prefixes() { |
1444 | 1444 | /** |