@@ -205,7 +205,7 @@ |
||
| 205 | 205 | * |
| 206 | 206 | * @param bool $force If set to true then all cached values will be delete instead of only expired |
| 207 | 207 | * |
| 208 | - * @return bool |
|
| 208 | + * @return false|null |
|
| 209 | 209 | */ |
| 210 | 210 | public static function delete_all_expired( $force = false ) { |
| 211 | 211 | global $wpdb; |
@@ -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 | */ |
@@ -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 | |
@@ -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 | */ |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * |
| 217 | 217 | * @access public |
| 218 | 218 | * @since 1.1 |
| 219 | - * @return array |
|
| 219 | + * @return string |
|
| 220 | 220 | */ |
| 221 | 221 | public function get_versions() { |
| 222 | 222 | return $this->versions; |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * @uses Give_API::invalid_key() |
| 303 | 303 | * @uses Give_API::invalid_auth() |
| 304 | 304 | * @since 1.1 |
| 305 | - * @return bool |
|
| 305 | + * @return false|null |
|
| 306 | 306 | */ |
| 307 | 307 | private function validate_request() { |
| 308 | 308 | global $wp_query; |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | * |
| 695 | 695 | * @param array $args Arguments to override defaults |
| 696 | 696 | * |
| 697 | - * @return array $dates |
|
| 697 | + * @return integer|null $dates |
|
| 698 | 698 | */ |
| 699 | 699 | public function get_dates( $args = array() ) { |
| 700 | 700 | $dates = array(); |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @since 1.0 |
| 159 | 159 | * @access public |
| 160 | 160 | * |
| 161 | - * @param bool|string|int $_id_or_email |
|
| 161 | + * @param integer $_id_or_email |
|
| 162 | 162 | * |
| 163 | 163 | * @return bool|int |
| 164 | 164 | */ |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | * @param int $user_id User ID. |
| 314 | 314 | * @param WP_User|bool $old_user_data User data. |
| 315 | 315 | * |
| 316 | - * @return bool |
|
| 316 | + * @return false|null |
|
| 317 | 317 | */ |
| 318 | 318 | public function update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) { |
| 319 | 319 | |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | * @access public |
| 371 | 371 | * |
| 372 | 372 | * @param string $field ID or email. Default is 'id'. |
| 373 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
| 373 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
| 374 | 374 | * |
| 375 | 375 | * @return mixed Upon success, an object of the donor. Upon failure, NULL |
| 376 | 376 | */ |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | * @access private |
| 684 | 684 | * @since 1.7 |
| 685 | 685 | * |
| 686 | - * @return bool |
|
| 686 | + * @return false|null |
|
| 687 | 687 | */ |
| 688 | 688 | private function __remove_license_key_from_subscriptions() { |
| 689 | 689 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -782,7 +782,7 @@ discard block |
||
| 782 | 782 | * @param $plugin_data |
| 783 | 783 | * @param $status |
| 784 | 784 | * |
| 785 | - * @return bool |
|
| 785 | + * @return false|null |
|
| 786 | 786 | */ |
| 787 | 787 | public function plugin_page_notices( $plugin_file, $plugin_data, $status ) { |
| 788 | 788 | // Bailout. |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | * |
| 805 | 805 | * @since 1.8.7 |
| 806 | 806 | * @access public |
| 807 | - * @return array |
|
| 807 | + * @return string |
|
| 808 | 808 | */ |
| 809 | 809 | public function license_state_message() { |
| 810 | 810 | $message_data = array(); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * @param string $user_login Username |
| 175 | 175 | * @param string $user_pass Password |
| 176 | 176 | * |
| 177 | - * @return bool |
|
| 177 | + * @return false|null |
|
| 178 | 178 | */ |
| 179 | 179 | function give_log_user_in( $user_id, $user_login, $user_pass ) { |
| 180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * |
| 216 | 216 | * @param array $data Data sent from the register form |
| 217 | 217 | * |
| 218 | - * @return bool |
|
| 218 | + * @return false|null |
|
| 219 | 219 | */ |
| 220 | 220 | function give_process_register_form( $data ) { |
| 221 | 221 | |
@@ -217,7 +217,6 @@ |
||
| 217 | 217 | /** |
| 218 | 218 | * Set Donation Amount for Multi Level Donation Forms |
| 219 | 219 | * |
| 220 | - * @param int $form_id |
|
| 221 | 220 | * @param object $form |
| 222 | 221 | * |
| 223 | 222 | * @since 1.8.9 |