@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @param array $args An array of form arguments. |
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 | |
@@ -1470,7 +1470,7 @@ discard block |
||
1470 | 1470 | * |
1471 | 1471 | * @param int $form_id The form ID. |
1472 | 1472 | * |
1473 | - * @return bool |
|
1473 | + * @return false|null |
|
1474 | 1474 | */ |
1475 | 1475 | function give_terms_agreement( $form_id ) { |
1476 | 1476 | $form_option = give_get_meta( $form_id, '_give_terms_option', true ); |
@@ -1647,7 +1647,7 @@ discard block |
||
1647 | 1647 | * @param int $form_id The form ID. |
1648 | 1648 | * @param array $args An array of form arguments. |
1649 | 1649 | * |
1650 | - * @return mixed |
|
1650 | + * @return boolean |
|
1651 | 1651 | */ |
1652 | 1652 | function give_show_goal_progress( $form_id, $args ) { |
1653 | 1653 | |
@@ -1667,7 +1667,7 @@ discard block |
||
1667 | 1667 | * |
1668 | 1668 | * @since 1.8 |
1669 | 1669 | * |
1670 | - * @param $form_id |
|
1670 | + * @param integer $form_id |
|
1671 | 1671 | * @param $args |
1672 | 1672 | * |
1673 | 1673 | * @return mixed|string |
@@ -1708,7 +1708,7 @@ discard block |
||
1708 | 1708 | * @param int $form_id The form ID. |
1709 | 1709 | * @param array $args An array of form arguments. |
1710 | 1710 | * |
1711 | - * @return void|bool |
|
1711 | + * @return false|null |
|
1712 | 1712 | */ |
1713 | 1713 | function give_form_content( $form_id, $args ) { |
1714 | 1714 |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param $url |
74 | 74 | * |
75 | - * @return mixed |
|
75 | + * @return string |
|
76 | 76 | */ |
77 | 77 | public function give_update_cmb_meta_box_url( $url ) { |
78 | 78 | // Path to Give's CMB |
@@ -935,7 +935,7 @@ discard block |
||
935 | 935 | * @since 1.3.5 |
936 | 936 | * |
937 | 937 | * @param $array |
938 | - * @param $position |int|string Expects an array key or 'id' of the settings field to appear after |
|
938 | + * @param string $position |int|string Expects an array key or 'id' of the settings field to appear after |
|
939 | 939 | * @param $insert |array a valid array of options to insert |
940 | 940 | * |
941 | 941 | * @return array |
@@ -974,7 +974,7 @@ discard block |
||
974 | 974 | * @since 1.0 |
975 | 975 | * |
976 | 976 | * @param array $field_arr |
977 | - * @param array $saved_values |
|
977 | + * @param string|boolean $saved_values |
|
978 | 978 | * |
979 | 979 | * @return void |
980 | 980 | */ |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | * @since 1.0 |
1010 | 1010 | * |
1011 | 1011 | * @param array $field_arr |
1012 | - * @param array $saved_value |
|
1012 | + * @param string|boolean $saved_value |
|
1013 | 1013 | * |
1014 | 1014 | * @return void |
1015 | 1015 | */ |
@@ -1163,7 +1163,7 @@ discard block |
||
1163 | 1163 | * @params $string text |
1164 | 1164 | * @params $filter array |
1165 | 1165 | * |
1166 | - * @return text $string |
|
1166 | + * @return string $string |
|
1167 | 1167 | */ |
1168 | 1168 | function give_slug_to_title( $string, $filters = array() ) { |
1169 | 1169 |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | /** |
491 | 491 | * Get donor email html. |
492 | 492 | * |
493 | - * @param object $payment Contains all the data of the payment. |
|
493 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
494 | 494 | * |
495 | 495 | * @access public |
496 | 496 | * @since 1.0 |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | /** |
514 | 514 | * Get Row Actions |
515 | 515 | * |
516 | - * @param object $payment Payment Data. |
|
516 | + * @param Give_Payment $payment Payment Data. |
|
517 | 517 | * |
518 | 518 | * @since 1.6 |
519 | 519 | * |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | /** |
566 | 566 | * Get payment status html. |
567 | 567 | * |
568 | - * @param object $payment Contains all the data of the payment. |
|
568 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
569 | 569 | * |
570 | 570 | * @access public |
571 | 571 | * @since 1.0 |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | /** |
616 | 616 | * Get donor html. |
617 | 617 | * |
618 | - * @param object $payment Contains all the data of the payment. |
|
618 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
619 | 619 | * |
620 | 620 | * @access public |
621 | 621 | * @since 1.0 |
@@ -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 |
@@ -242,7 +242,7 @@ |
||
242 | 242 | * @since 1.0 |
243 | 243 | * @access public |
244 | 244 | * |
245 | - * @return bool |
|
245 | + * @return boolean|null |
|
246 | 246 | */ |
247 | 247 | public function check_for_token() { |
248 | 248 |
@@ -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 | |
@@ -749,7 +749,7 @@ discard block |
||
749 | 749 | * |
750 | 750 | * @param int $form_id ID number of the form to retrieve the minimum price for |
751 | 751 | * |
752 | - * @return mixed string|int Minimum price of the form |
|
752 | + * @return string string|int Minimum price of the form |
|
753 | 753 | */ |
754 | 754 | function give_get_form_minimum_price( $form_id = 0 ) { |
755 | 755 |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @param string $user_login Username |
181 | 181 | * @param string $user_pass Password |
182 | 182 | * |
183 | - * @return bool |
|
183 | + * @return false|null |
|
184 | 184 | */ |
185 | 185 | function give_log_user_in( $user_id, $user_login, $user_pass ) { |
186 | 186 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * |
222 | 222 | * @param array $data Data sent from the register form |
223 | 223 | * |
224 | - * @return bool |
|
224 | + * @return false|null |
|
225 | 225 | */ |
226 | 226 | function give_process_register_form( $data ) { |
227 | 227 | |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * |
308 | 308 | * @since 1.8.17 |
309 | 309 | * |
310 | - * @return bool |
|
310 | + * @return boolean|null |
|
311 | 311 | */ |
312 | 312 | function give_email_access_login() { |
313 | 313 |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @since 1.8.17 |
214 | 214 | * |
215 | - * @return array|string |
|
215 | + * @return boolean |
|
216 | 216 | */ |
217 | 217 | function give_get_history_session() { |
218 | 218 | return (bool) Give()->session->get( 'history_access' ); |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | * |
686 | 686 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
687 | 687 | * |
688 | - * @return bool |
|
688 | + * @return false|null |
|
689 | 689 | */ |
690 | 690 | function give_donation_metabox_menu() { |
691 | 691 | |
@@ -1084,7 +1084,7 @@ discard block |
||
1084 | 1084 | * @param int $id |
1085 | 1085 | * @param string $meta_key |
1086 | 1086 | * @param mixed $meta_value |
1087 | - * @param mixed $prev_value |
|
1087 | + * @param string $prev_value |
|
1088 | 1088 | * |
1089 | 1089 | * @return mixed |
1090 | 1090 | */ |
@@ -1291,7 +1291,7 @@ discard block |
||
1291 | 1291 | * @since 1.8.13 |
1292 | 1292 | * |
1293 | 1293 | * @param array $list List of objects or arrays |
1294 | - * @param int|string $field Field from the object to place instead of the entire object |
|
1294 | + * @param string $field Field from the object to place instead of the entire object |
|
1295 | 1295 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
1296 | 1296 | * Default null. |
1297 | 1297 | * |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @param int|bool $payment_id A given payment |
393 | 393 | * |
394 | - * @return mixed void|false |
|
394 | + * @return false|null void|false |
|
395 | 395 | */ |
396 | 396 | public function __construct( $payment_id = false ) { |
397 | 397 | |
@@ -1115,7 +1115,7 @@ discard block |
||
1115 | 1115 | * |
1116 | 1116 | * @param string|bool $note The note to add |
1117 | 1117 | * |
1118 | - * @return bool If the note was specified or not |
|
1118 | + * @return false|null If the note was specified or not |
|
1119 | 1119 | */ |
1120 | 1120 | public function add_note( $note = false ) { |
1121 | 1121 | // Bail if no note specified. |