@@ -283,7 +283,7 @@ |
||
| 283 | 283 | * @since 1.0 |
| 284 | 284 | * |
| 285 | 285 | * @param int|float|string $amount Formatted or sanitized price |
| 286 | - * @param int|bool $dp number of decimals |
|
| 286 | + * @param boolean $dp number of decimals |
|
| 287 | 287 | * @param bool $sanitize Whether or not sanitize number |
| 288 | 288 | * |
| 289 | 289 | * @return string $amount Newly formatted amount or Price Not Available |
@@ -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 |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | * |
| 442 | 442 | * @param int $form_id Give Form ID |
| 443 | 443 | * |
| 444 | - * @return int $earnings Earnings for a certain form |
|
| 444 | + * @return double $earnings Earnings for a certain form |
|
| 445 | 445 | */ |
| 446 | 446 | function give_get_form_earnings_stats( $form_id = 0 ) { |
| 447 | 447 | $give_form = new Give_Donate_Form( $form_id ); |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | * |
| 709 | 709 | * @param int $form_id ID number of the form to retrieve the minimum price for |
| 710 | 710 | * |
| 711 | - * @return mixed string|int Minimum price of the form |
|
| 711 | + * @return string string|int Minimum price of the form |
|
| 712 | 712 | */ |
| 713 | 713 | function give_get_form_minimum_price( $form_id = 0 ) { |
| 714 | 714 | |
@@ -521,7 +521,7 @@ |
||
| 521 | 521 | * Example: <?php $give = Give(); ?> |
| 522 | 522 | * |
| 523 | 523 | * @since 1.0 |
| 524 | - * @return object|Give |
|
| 524 | + * @return Give |
|
| 525 | 525 | */ |
| 526 | 526 | function Give() { |
| 527 | 527 | return Give::instance(); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * Return the calculated completion percentage. |
| 217 | 217 | * |
| 218 | 218 | * @since 1.8.12 |
| 219 | - * @return int |
|
| 219 | + * @return double |
|
| 220 | 220 | */ |
| 221 | 221 | public function get_percentage_complete() { |
| 222 | 222 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -353,6 +353,9 @@ discard block |
||
| 353 | 353 | return true; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | + /** |
|
| 357 | + * @param integer $page |
|
| 358 | + */ |
|
| 356 | 359 | public function get_delete_ids( $donation_ids, $page ) { |
| 357 | 360 | $index = $page --; |
| 358 | 361 | $count = count( $donation_ids ); |
@@ -372,7 +372,7 @@ |
||
| 372 | 372 | * |
| 373 | 373 | * @since 1.8.11 |
| 374 | 374 | * |
| 375 | - * @return void |
|
| 375 | + * @return false|null |
|
| 376 | 376 | */ |
| 377 | 377 | function give_create_pages(){ |
| 378 | 378 | |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | * @param int $year Year number. Default is null. |
| 677 | 677 | * @param int $hour Hour number. Default is null. |
| 678 | 678 | * |
| 679 | - * @return int $earnings Earnings |
|
| 679 | + * @return double $earnings Earnings |
|
| 680 | 680 | */ |
| 681 | 681 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 682 | 682 | // This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead. |
@@ -936,7 +936,7 @@ discard block |
||
| 936 | 936 | * @param string $meta_key The meta key to pull. |
| 937 | 937 | * @param bool $single Pull single meta entry or as an object. |
| 938 | 938 | * |
| 939 | - * @return mixed $meta Payment Meta. |
|
| 939 | + * @return string $meta Payment Meta. |
|
| 940 | 940 | */ |
| 941 | 941 | function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) { |
| 942 | 942 | $payment = new Give_Payment( $payment_id ); |
@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | * |
| 985 | 985 | * @param int $payment_id Payment ID. |
| 986 | 986 | * |
| 987 | - * @return int $form_id Form ID. |
|
| 987 | + * @return string $form_id Form ID. |
|
| 988 | 988 | */ |
| 989 | 989 | function give_get_payment_form_id( $payment_id ) { |
| 990 | 990 | $payment = new Give_Payment( $payment_id ); |