@@ -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; |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * |
| 119 | 119 | * @param string $email_preview_header |
| 120 | 120 | * @param Give_Donor_Register_Email $email |
| 121 | - * @return bool |
|
| 121 | + * @return string|null |
|
| 122 | 122 | */ |
| 123 | 123 | public function email_preview_header( $email_preview_header, $email ) { |
| 124 | 124 | // Bailout. |
@@ -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 | */ |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | * |
| 368 | 368 | * @since 1.0 |
| 369 | 369 | * |
| 370 | - * @param int|bool $form_id Form ID (default: false). |
|
| 370 | + * @param boolean $form_id Form ID (default: false). |
|
| 371 | 371 | * @param int $payment_id Payment ID. |
| 372 | 372 | * |
| 373 | 373 | * @return void |
@@ -691,7 +691,7 @@ discard block |
||
| 691 | 691 | * @param int $year Year number. Default is null. |
| 692 | 692 | * @param int $hour Hour number. Default is null. |
| 693 | 693 | * |
| 694 | - * @return int $earnings Earnings |
|
| 694 | + * @return double $earnings Earnings |
|
| 695 | 695 | */ |
| 696 | 696 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 697 | 697 | |
@@ -949,7 +949,7 @@ discard block |
||
| 949 | 949 | * @param string $meta_key The meta key to pull. |
| 950 | 950 | * @param bool $single Pull single meta entry or as an object. |
| 951 | 951 | * |
| 952 | - * @return mixed $meta Payment Meta. |
|
| 952 | + * @return string $meta Payment Meta. |
|
| 953 | 953 | */ |
| 954 | 954 | function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) { |
| 955 | 955 | $payment = new Give_Payment( $payment_id ); |
@@ -997,7 +997,7 @@ discard block |
||
| 997 | 997 | * |
| 998 | 998 | * @param int $payment_id Payment ID. |
| 999 | 999 | * |
| 1000 | - * @return int $form_id Form ID. |
|
| 1000 | + * @return string $form_id Form ID. |
|
| 1001 | 1001 | */ |
| 1002 | 1002 | function give_get_payment_form_id( $payment_id ) { |
| 1003 | 1003 | $payment = new Give_Payment( $payment_id ); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | * @param Give_Email_Notification $email |
| 135 | 135 | * @param int $form_id |
| 136 | 136 | * |
| 137 | - * @return string |
|
| 137 | + * @return boolean |
|
| 138 | 138 | */ |
| 139 | 139 | public static function is_email_notification_active( Give_Email_Notification $email, $form_id = null ) { |
| 140 | 140 | $notification_status = $email->get_notification_status( $form_id ); |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | * @access public |
| 484 | 484 | * @since 1.7 |
| 485 | 485 | * |
| 486 | - * @return bool|void |
|
| 486 | + * @return false|null |
|
| 487 | 487 | */ |
| 488 | 488 | public function weekly_license_check() { |
| 489 | 489 | |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | * @access public |
| 537 | 537 | * @since 1.7 |
| 538 | 538 | * |
| 539 | - * @return bool|void |
|
| 539 | + * @return false|null |
|
| 540 | 540 | */ |
| 541 | 541 | public function weekly_subscription_check() { |
| 542 | 542 | |
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | * @access private |
| 618 | 618 | * @since 1.7 |
| 619 | 619 | * |
| 620 | - * @return bool|void |
|
| 620 | + * @return false|null |
|
| 621 | 621 | */ |
| 622 | 622 | private function __single_subscription_check() { |
| 623 | 623 | // Do not fire if license key is not set. |
@@ -829,7 +829,7 @@ discard block |
||
| 829 | 829 | * @access private |
| 830 | 830 | * @since 1.7 |
| 831 | 831 | * |
| 832 | - * @return void|bool |
|
| 832 | + * @return false|null |
|
| 833 | 833 | */ |
| 834 | 834 | private function __remove_license_key_from_subscriptions() { |
| 835 | 835 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -928,7 +928,7 @@ discard block |
||
| 928 | 928 | * @param $plugin_data |
| 929 | 929 | * @param $status |
| 930 | 930 | * |
| 931 | - * @return bool |
|
| 931 | + * @return false|null |
|
| 932 | 932 | */ |
| 933 | 933 | public function plugin_page_notices( $plugin_file, $plugin_data, $status ) { |
| 934 | 934 | // Bailout. |
@@ -957,7 +957,7 @@ discard block |
||
| 957 | 957 | * |
| 958 | 958 | * @since 1.8.7 |
| 959 | 959 | * @access public |
| 960 | - * @return array |
|
| 960 | + * @return string |
|
| 961 | 961 | */ |
| 962 | 962 | public function license_state_message() { |
| 963 | 963 | $message_data = array(); |
@@ -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 ); |