@@ -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 |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | * @param int $year Year number. Default is null. |
| 685 | 685 | * @param int $hour Hour number. Default is null. |
| 686 | 686 | * |
| 687 | - * @return int $earnings Earnings |
|
| 687 | + * @return double $earnings Earnings |
|
| 688 | 688 | */ |
| 689 | 689 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 690 | 690 | |
@@ -942,7 +942,7 @@ discard block |
||
| 942 | 942 | * @param string $meta_key The meta key to pull. |
| 943 | 943 | * @param bool $single Pull single meta entry or as an object. |
| 944 | 944 | * |
| 945 | - * @return mixed $meta Payment Meta. |
|
| 945 | + * @return string $meta Payment Meta. |
|
| 946 | 946 | */ |
| 947 | 947 | function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) { |
| 948 | 948 | $payment = new Give_Payment( $payment_id ); |
@@ -990,7 +990,7 @@ discard block |
||
| 990 | 990 | * |
| 991 | 991 | * @param int $payment_id Payment ID. |
| 992 | 992 | * |
| 993 | - * @return int $form_id Form ID. |
|
| 993 | + * @return string $form_id Form ID. |
|
| 994 | 994 | */ |
| 995 | 995 | function give_get_payment_form_id( $payment_id ) { |
| 996 | 996 | $payment = new Give_Payment( $payment_id ); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * metadata entries with the specified value. |
| 17 | 17 | * Otherwise, update all entries. |
| 18 | 18 | * |
| 19 | - * @return mixed |
|
| 19 | + * @return null|boolean |
|
| 20 | 20 | */ |
| 21 | 21 | function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) { |
| 22 | 22 | // Bailout. |
@@ -205,7 +205,7 @@ discard block |
||
| 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; |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * @since 2.0 |
| 325 | 325 | * @access public |
| 326 | 326 | * |
| 327 | - * @param $group_type |
|
| 327 | + * @param string $group_type |
|
| 328 | 328 | * @param array $args { |
| 329 | 329 | * |
| 330 | 330 | * @type string $id |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | * @since 1.8.9 |
| 436 | 436 | * @access public |
| 437 | 437 | * |
| 438 | - * @param $errors |
|
| 438 | + * @param string $errors |
|
| 439 | 439 | */ |
| 440 | 440 | static function print_frontend_errors( $errors ) { |
| 441 | 441 | if ( ! $errors ) { |