@@ -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 ); |