@@ -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; |
@@ -530,7 +530,7 @@ |
||
| 530 | 530 | * |
| 531 | 531 | * @param int $payment_id |
| 532 | 532 | * |
| 533 | - * @return int payment_id |
|
| 533 | + * @return string payment_id |
|
| 534 | 534 | */ |
| 535 | 535 | function give_email_tag_payment_id( $payment_id ) { |
| 536 | 536 | $payment = new Give_Payment( $payment_id ); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * |
| 66 | 66 | * @since 1.0 |
| 67 | 67 | * @uses Give_Session::get() |
| 68 | - * @return mixed array if errors are present, false if none found |
|
| 68 | + * @return string array if errors are present, false if none found |
|
| 69 | 69 | */ |
| 70 | 70 | function give_get_errors() { |
| 71 | 71 | return Give()->session->get( 'give_errors' ); |
@@ -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 ); |
@@ -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. |
@@ -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 ); |
@@ -713,7 +713,7 @@ |
||
| 713 | 713 | * |
| 714 | 714 | * @param array $value The form field value array |
| 715 | 715 | * |
| 716 | - * @return array The description and tip as a 2 element array |
|
| 716 | + * @return string The description and tip as a 2 element array |
|
| 717 | 717 | */ |
| 718 | 718 | public static function get_field_description( $value ) { |
| 719 | 719 | $description = ''; |