@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * @param $field_args |
| 227 | 227 | * @param $field |
| 228 | 228 | * |
| 229 | - * @return bool |
|
| 229 | + * @return false|null |
|
| 230 | 230 | */ |
| 231 | 231 | function give_format_admin_multilevel_amount( $field_args, $field ) { |
| 232 | 232 | |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | * @param array $field_args |
| 377 | 377 | * @param object $field |
| 378 | 378 | * |
| 379 | - * @return mixed |
|
| 379 | + * @return string |
|
| 380 | 380 | */ |
| 381 | 381 | function give_sanitize_thousand_separator( $value, $field_args, $field ) { |
| 382 | 382 | return stripslashes( $value ); |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | * @param array $field_args |
| 410 | 410 | * @param object $field |
| 411 | 411 | * |
| 412 | - * @return mixed |
|
| 412 | + * @return string |
|
| 413 | 413 | */ |
| 414 | 414 | function give_sanitize_price_field_value( $value, $field_args, $field ) { |
| 415 | 415 | return give_sanitize_amount( $value ); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * Used to redirect a user back to the donation form if there are errors present. |
| 157 | 157 | * |
| 158 | - * @param array $args |
|
| 158 | + * @param string $args |
|
| 159 | 159 | * |
| 160 | 160 | * @access public |
| 161 | 161 | * @since 1.0 |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | * |
| 438 | 438 | * @param int $form_id Give Form ID |
| 439 | 439 | * |
| 440 | - * @return int $earnings Earnings for a certain form |
|
| 440 | + * @return double $earnings Earnings for a certain form |
|
| 441 | 441 | */ |
| 442 | 442 | function give_get_form_earnings_stats( $form_id = 0 ) { |
| 443 | 443 | $give_form = new Give_Donate_Form( $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 | |
@@ -1465,7 +1465,7 @@ discard block |
||
| 1465 | 1465 | * |
| 1466 | 1466 | * @param int $form_id The form ID. |
| 1467 | 1467 | * |
| 1468 | - * @return void|bool |
|
| 1468 | + * @return false|null |
|
| 1469 | 1469 | */ |
| 1470 | 1470 | function give_terms_agreement( $form_id ) { |
| 1471 | 1471 | $form_option = get_post_meta( $form_id, '_give_terms_option', true ); |
@@ -1668,7 +1668,7 @@ discard block |
||
| 1668 | 1668 | * @param int $form_id The form ID. |
| 1669 | 1669 | * @param array $args An array of form arguments. |
| 1670 | 1670 | * |
| 1671 | - * @return mixed |
|
| 1671 | + * @return boolean |
|
| 1672 | 1672 | */ |
| 1673 | 1673 | function give_show_goal_progress( $form_id, $args ) { |
| 1674 | 1674 | |
@@ -456,7 +456,7 @@ |
||
| 456 | 456 | * |
| 457 | 457 | * @param WP_Post $payment |
| 458 | 458 | * |
| 459 | - * @return mixed |
|
| 459 | + * @return false|null |
|
| 460 | 460 | */ |
| 461 | 461 | function give_offline_payment_receipt_after( $payment ) { |
| 462 | 462 | // Get payment object. |
@@ -687,7 +687,7 @@ |
||
| 687 | 687 | * |
| 688 | 688 | * @since 1.6.3 |
| 689 | 689 | * |
| 690 | - * @param $pending_reason |
|
| 690 | + * @param string $pending_reason |
|
| 691 | 691 | * |
| 692 | 692 | * @return string |
| 693 | 693 | */ |
@@ -339,7 +339,7 @@ |
||
| 339 | 339 | * |
| 340 | 340 | * @since 1.0 |
| 341 | 341 | * @uses Give()->session->get() |
| 342 | - * @return mixed array | false |
|
| 342 | + * @return string array | false |
|
| 343 | 343 | */ |
| 344 | 344 | function give_get_purchase_session() { |
| 345 | 345 | return Give()->session->get( 'give_purchase' ); |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * |
| 393 | 393 | * @param int|bool $payment_id A given payment |
| 394 | 394 | * |
| 395 | - * @return mixed void|false |
|
| 395 | + * @return false|null void|false |
|
| 396 | 396 | */ |
| 397 | 397 | public function __construct( $payment_id = false ) { |
| 398 | 398 | |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | * |
| 464 | 464 | * @param string $name The attribute to get |
| 465 | 465 | * |
| 466 | - * @return boolean If the item is set or not |
|
| 466 | + * @return boolean|null If the item is set or not |
|
| 467 | 467 | */ |
| 468 | 468 | public function __isset( $name ) { |
| 469 | 469 | if ( property_exists( $this, $name ) ) { |
@@ -1302,7 +1302,7 @@ discard block |
||
| 1302 | 1302 | * |
| 1303 | 1303 | * @param string $note The note to add |
| 1304 | 1304 | * |
| 1305 | - * @return void |
|
| 1305 | + * @return false|null |
|
| 1306 | 1306 | */ |
| 1307 | 1307 | public function add_note( $note = false ) { |
| 1308 | 1308 | // Bail if no note specified. |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | * |
| 327 | 327 | * @since 1.0 |
| 328 | 328 | * |
| 329 | - * @param int|bool $form_id Form ID (default: false). |
|
| 329 | + * @param boolean $form_id Form ID (default: false). |
|
| 330 | 330 | * @param int $payment_id Payment ID. |
| 331 | 331 | * |
| 332 | 332 | * @return void |
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | * @param int $year Year number. Default is null. |
| 650 | 650 | * @param int $hour Hour number. Default is null. |
| 651 | 651 | * |
| 652 | - * @return int $earnings Earnings |
|
| 652 | + * @return double $earnings Earnings |
|
| 653 | 653 | */ |
| 654 | 654 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 655 | 655 | |
@@ -963,7 +963,7 @@ discard block |
||
| 963 | 963 | * |
| 964 | 964 | * @param int $payment_id Payment ID. |
| 965 | 965 | * |
| 966 | - * @return int $form_id Form ID. |
|
| 966 | + * @return string $form_id Form ID. |
|
| 967 | 967 | */ |
| 968 | 968 | function give_get_payment_form_id( $payment_id ) { |
| 969 | 969 | $payment = new Give_Payment( $payment_id ); |
@@ -463,7 +463,7 @@ |
||
| 463 | 463 | * @since 1.7 |
| 464 | 464 | * @access public |
| 465 | 465 | * |
| 466 | - * @return bool |
|
| 466 | + * @return false|null |
|
| 467 | 467 | */ |
| 468 | 468 | public function delete_cache() { |
| 469 | 469 | global $wpdb; |