@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * |
| 80 | 80 | * @since 1.0 |
| 81 | 81 | * |
| 82 | - * @param $form_id int ID of the Give Form |
|
| 82 | + * @param null|integer $form_id int ID of the Give Form |
|
| 83 | 83 | * |
| 84 | 84 | * @return string Gateway ID |
| 85 | 85 | */ |
@@ -598,7 +598,7 @@ |
||
| 598 | 598 | * @param int $payment_id Payment ID |
| 599 | 599 | * @param array $payment_data Array of payment data. |
| 600 | 600 | * |
| 601 | - * @return mixed|string |
|
| 601 | + * @return string |
|
| 602 | 602 | */ |
| 603 | 603 | function give_build_paypal_url( $payment_id, $payment_data ) { |
| 604 | 604 | // Only send to PayPal if the pending payment is created successfully. |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @since 2.5.0 |
| 22 | 22 | * |
| 23 | - * @return void |
|
| 23 | + * @return false|null |
|
| 24 | 24 | */ |
| 25 | 25 | function give_stripe_connect_save_options() { |
| 26 | 26 | |
@@ -327,7 +327,7 @@ |
||
| 327 | 327 | * @since 2.1 |
| 328 | 328 | * @access public |
| 329 | 329 | * |
| 330 | - * @return void |
|
| 330 | + * @return false|null |
|
| 331 | 331 | */ |
| 332 | 332 | public function attach_source() { |
| 333 | 333 | |
@@ -432,7 +432,7 @@ |
||
| 432 | 432 | * |
| 433 | 433 | * @param float $amount Donation amount. |
| 434 | 434 | * |
| 435 | - * @return mixed |
|
| 435 | + * @return double |
|
| 436 | 436 | */ |
| 437 | 437 | public function format_amount( $amount ) { |
| 438 | 438 | |
@@ -552,7 +552,7 @@ discard block |
||
| 552 | 552 | * @param integer $donation_or_post_id Donation or wp post id. |
| 553 | 553 | * @param bool $check_enabled Check if sequential-ordering_status is activated or not. |
| 554 | 554 | * |
| 555 | - * @return bool|string |
|
| 555 | + * @return false|string |
|
| 556 | 556 | */ |
| 557 | 557 | function give_stripe_get_sequential_id( $donation_or_post_id, $check_enabled = true ) { |
| 558 | 558 | // Check if enabled. |
@@ -1162,7 +1162,7 @@ discard block |
||
| 1162 | 1162 | * |
| 1163 | 1163 | * @since 2.5.0 |
| 1164 | 1164 | * |
| 1165 | - * @return string |
|
| 1165 | + * @return double |
|
| 1166 | 1166 | */ |
| 1167 | 1167 | function give_stripe_dollars_to_cents( $dollars ) { |
| 1168 | 1168 | return round( $dollars, give_currency_decimal_filter() ) * 100; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | /** |
| 224 | 224 | * Retrieve Payment Key of the History Access Session. |
| 225 | 225 | * |
| 226 | - * @return array|string |
|
| 226 | + * @return boolean |
|
| 227 | 227 | * @since 1.8.17 |
| 228 | 228 | */ |
| 229 | 229 | function give_get_history_session() { |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | /** |
| 521 | 521 | * Show Donation Forms Post Type in Appearance > Menus by default on fresh install. |
| 522 | 522 | * |
| 523 | - * @return bool |
|
| 523 | + * @return false|null |
|
| 524 | 524 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
| 525 | 525 | * |
| 526 | 526 | * @since 1.8.14 |
@@ -861,7 +861,7 @@ discard block |
||
| 861 | 861 | /** |
| 862 | 862 | * Check if terms enabled or not for form. |
| 863 | 863 | * |
| 864 | - * @param $form_id |
|
| 864 | + * @param integer $form_id |
|
| 865 | 865 | * |
| 866 | 866 | * @return bool |
| 867 | 867 | * @since 1.8 |
@@ -983,7 +983,7 @@ discard block |
||
| 983 | 983 | * @param int $id |
| 984 | 984 | * @param string $meta_key |
| 985 | 985 | * @param mixed $meta_value |
| 986 | - * @param mixed $prev_value |
|
| 986 | + * @param string $prev_value |
|
| 987 | 987 | * @param string $meta_type |
| 988 | 988 | * |
| 989 | 989 | * @return mixed |
@@ -1270,7 +1270,7 @@ discard block |
||
| 1270 | 1270 | * array_column() (PHP 5.5) but also supports objects. |
| 1271 | 1271 | * |
| 1272 | 1272 | * @param array $list List of objects or arrays |
| 1273 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1273 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1274 | 1274 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1275 | 1275 | * Default null. |
| 1276 | 1276 | * |
@@ -2217,7 +2217,7 @@ discard block |
||
| 2217 | 2217 | * |
| 2218 | 2218 | * @param $args |
| 2219 | 2219 | * |
| 2220 | - * @return bool|mixed |
|
| 2220 | + * @return string|null |
|
| 2221 | 2221 | * @since 2.4.1 |
| 2222 | 2222 | */ |
| 2223 | 2223 | function give_display_donation_receipt( $args ) { |
@@ -2320,7 +2320,7 @@ discard block |
||
| 2320 | 2320 | * @param $plugin_slug |
| 2321 | 2321 | * @param bool $by_plugin_name |
| 2322 | 2322 | * |
| 2323 | - * @return mixed|void |
|
| 2323 | + * @return string |
|
| 2324 | 2324 | * @since 2.5.0 |
| 2325 | 2325 | */ |
| 2326 | 2326 | function give_get_addon_readme_url( $plugin_slug, $by_plugin_name = false ) { |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | * |
| 153 | 153 | * @deprecated Use the `save` method on the Dispute object |
| 154 | 154 | * |
| 155 | - * @return array The updated dispute. |
|
| 155 | + * @return string The updated dispute. |
|
| 156 | 156 | */ |
| 157 | 157 | public function updateDispute($params = null, $options = null) |
| 158 | 158 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * @param array|null $params |
| 84 | 84 | * |
| 85 | - * @return array An array of the customer's Invoices. |
|
| 85 | + * @return Collection An array of the customer's Invoices. |
|
| 86 | 86 | */ |
| 87 | 87 | public function invoices($params = null) |
| 88 | 88 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * @param array|null $params |
| 97 | 97 | * |
| 98 | - * @return array An array of the customer's InvoiceItems. |
|
| 98 | + * @return Collection An array of the customer's InvoiceItems. |
|
| 99 | 99 | */ |
| 100 | 100 | public function invoiceItems($params = null) |
| 101 | 101 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * @param array|null $params |
| 110 | 110 | * |
| 111 | - * @return array An array of the customer's Charges. |
|
| 111 | + * @return Collection An array of the customer's Charges. |
|
| 112 | 112 | */ |
| 113 | 113 | public function charges($params = null) |
| 114 | 114 | { |