@@ -553,7 +553,7 @@ |
||
| 553 | 553 | * |
| 554 | 554 | * @param int $form_id |
| 555 | 555 | * |
| 556 | - * @return array|string |
|
| 556 | + * @return string |
|
| 557 | 557 | */ |
| 558 | 558 | public function get_preview_email_recipient( $form_id = null ) { |
| 559 | 559 | $recipients = $this->get_recipient( $form_id ); |
@@ -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 | |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | * @param string $email_preview_header |
| 121 | 121 | * @param Give_Donor_Register_Email $email |
| 122 | 122 | * |
| 123 | - * @return bool |
|
| 123 | + * @return string|null |
|
| 124 | 124 | */ |
| 125 | 125 | public function email_preview_header( $email_preview_header, $email ) { |
| 126 | 126 | // Bailout. |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | * |
| 158 | 158 | * @access public |
| 159 | 159 | * @since 1.0 |
| 160 | - * @return string|bool String if search is present, false otherwise |
|
| 160 | + * @return string|false String if search is present, false otherwise |
|
| 161 | 161 | */ |
| 162 | 162 | public function get_search() { |
| 163 | 163 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | * |
| 158 | 158 | * @access public |
| 159 | 159 | * @since 1.0 |
| 160 | - * @return string|bool string If search is present, false otherwise |
|
| 160 | + * @return string|false string If search is present, false otherwise |
|
| 161 | 161 | */ |
| 162 | 162 | public function get_search() { |
| 163 | 163 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -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 |
@@ -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 | */ |
@@ -1170,7 +1170,7 @@ discard block |
||
| 1170 | 1170 | * @params $string text |
| 1171 | 1171 | * @params $filter array |
| 1172 | 1172 | * |
| 1173 | - * @return text $string |
|
| 1173 | + * @return string $string |
|
| 1174 | 1174 | */ |
| 1175 | 1175 | function give_slug_to_title( $string, $filters = array() ){ |
| 1176 | 1176 | |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | * |
| 254 | 254 | * @access public |
| 255 | 255 | * @since 1.0 |
| 256 | - * @return mixed string If search is present, false otherwise. |
|
| 256 | + * @return string|false string If search is present, false otherwise. |
|
| 257 | 257 | */ |
| 258 | 258 | public function get_search() { |
| 259 | 259 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | * |
| 273 | 273 | * @param array $args The $_POST array being passed. |
| 274 | 274 | * |
| 275 | - * @return int Whether it was a successful deletion. |
|
| 275 | + * @return false|null Whether it was a successful deletion. |
|
| 276 | 276 | */ |
| 277 | 277 | function give_donor_delete( $args ) { |
| 278 | 278 | |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | * Remove an email address to the donor from within the admin and log a donor note and redirect back to the donor interface for feedback. |
| 547 | 547 | * |
| 548 | 548 | * @since 1.7 |
| 549 | - * @return bool|null |
|
| 549 | + * @return false|null |
|
| 550 | 550 | */ |
| 551 | 551 | function give_remove_donor_email() { |
| 552 | 552 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -589,7 +589,7 @@ discard block |
||
| 589 | 589 | * and redirect back to the donor interface for feedback |
| 590 | 590 | * |
| 591 | 591 | * @since 1.7 |
| 592 | - * @return bool|null |
|
| 592 | + * @return false|null |
|
| 593 | 593 | */ |
| 594 | 594 | function give_set_donor_primary_email() { |
| 595 | 595 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -889,7 +889,7 @@ discard block |
||
| 889 | 889 | * @access public |
| 890 | 890 | * |
| 891 | 891 | * @param string $meta_key Metadata name. Default is empty. |
| 892 | - * @param mixed $meta_value Metadata value. |
|
| 892 | + * @param string $meta_value Metadata value. |
|
| 893 | 893 | * @param bool $unique Optional. Whether the same key should not be added. Default is false. |
| 894 | 894 | * |
| 895 | 895 | * @return bool False for failure. True for success. |
@@ -921,7 +921,7 @@ discard block |
||
| 921 | 921 | * @access public |
| 922 | 922 | * |
| 923 | 923 | * @param string $meta_key Metadata name. Default is empty. |
| 924 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 924 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 925 | 925 | * |
| 926 | 926 | * @return bool False for failure. True for success. |
| 927 | 927 | */ |