@@ -258,7 +258,7 @@ |
||
| 258 | 258 | * @access public |
| 259 | 259 | * @since 1.0 |
| 260 | 260 | * |
| 261 | - * @return mixed string If search is present, false otherwise. |
|
| 261 | + * @return string|false string If search is present, false otherwise. |
|
| 262 | 262 | */ |
| 263 | 263 | public function get_search() { |
| 264 | 264 | 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 | |
@@ -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'] ) ) { |
@@ -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 | |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | * |
| 742 | 742 | * @param int $form_id ID number of the form to retrieve the minimum price for |
| 743 | 743 | * |
| 744 | - * @return mixed string|int Minimum price of the form |
|
| 744 | + * @return string string|int Minimum price of the form |
|
| 745 | 745 | */ |
| 746 | 746 | function give_get_form_minimum_price( $form_id = 0 ) { |
| 747 | 747 | |
@@ -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. |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | /** |
| 468 | 468 | * Get donor email html. |
| 469 | 469 | * |
| 470 | - * @param object $payment Contains all the data of the payment. |
|
| 470 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
| 471 | 471 | * |
| 472 | 472 | * @access public |
| 473 | 473 | * @since 1.0 |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | /** |
| 491 | 491 | * Get Row Actions |
| 492 | 492 | * |
| 493 | - * @param object $payment Payment Data. |
|
| 493 | + * @param Give_Payment $payment Payment Data. |
|
| 494 | 494 | * |
| 495 | 495 | * @since 1.6 |
| 496 | 496 | * |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | /** |
| 531 | 531 | * Get payment status html. |
| 532 | 532 | * |
| 533 | - * @param object $payment Contains all the data of the payment. |
|
| 533 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
| 534 | 534 | * |
| 535 | 535 | * @access public |
| 536 | 536 | * @since 1.0 |
@@ -580,7 +580,7 @@ discard block |
||
| 580 | 580 | /** |
| 581 | 581 | * Get donor html. |
| 582 | 582 | * |
| 583 | - * @param object $payment Contains all the data of the payment. |
|
| 583 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
| 584 | 584 | * |
| 585 | 585 | * @access public |
| 586 | 586 | * @since 1.0 |
@@ -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 | |
@@ -567,7 +567,7 @@ discard block |
||
| 567 | 567 | * |
| 568 | 568 | * @since 1.0 |
| 569 | 569 | * |
| 570 | - * @return int $earnings Earnings |
|
| 570 | + * @return double $earnings Earnings |
|
| 571 | 571 | */ |
| 572 | 572 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 573 | 573 | |
@@ -864,7 +864,7 @@ discard block |
||
| 864 | 864 | * |
| 865 | 865 | * @since 1.0 |
| 866 | 866 | * |
| 867 | - * @return array $user_info User Info Meta Values. |
|
| 867 | + * @return string $user_info User Info Meta Values. |
|
| 868 | 868 | */ |
| 869 | 869 | function give_get_payment_meta_user_info( $payment_id ) { |
| 870 | 870 | $payment = new Give_Payment( $payment_id ); |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | * |
| 882 | 882 | * @since 1.0 |
| 883 | 883 | * |
| 884 | - * @return int $form_id Form ID. |
|
| 884 | + * @return string $form_id Form ID. |
|
| 885 | 885 | */ |
| 886 | 886 | function give_get_payment_form_id( $payment_id ) { |
| 887 | 887 | $payment = new Give_Payment( $payment_id ); |
@@ -1188,7 +1188,7 @@ discard block |
||
| 1188 | 1188 | * and give_format_amount() to format the amount correctly in case of formatted amount. |
| 1189 | 1189 | * |
| 1190 | 1190 | * @param int|Give_Payment $donation Donation ID or Donation Object. |
| 1191 | - * @param bool|array $format_args Currency Formatting Arguments. |
|
| 1191 | + * @param string $format_args Currency Formatting Arguments. |
|
| 1192 | 1192 | * |
| 1193 | 1193 | * @since 1.0 |
| 1194 | 1194 | * @since 1.8.17 Added filter and internally use functions. |