@@ -157,7 +157,7 @@ |
||
| 157 | 157 | * |
| 158 | 158 | * @access public |
| 159 | 159 | * @since 1.0 |
| 160 | - * @return mixed string If search is present, false otherwise |
|
| 160 | + * @return string|false string If search is present, false otherwise |
|
| 161 | 161 | */ |
| 162 | 162 | public function get_search() { |
| 163 | 163 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -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 |
@@ -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 ); |
@@ -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 | |
@@ -1488,7 +1488,7 @@ discard block |
||
| 1488 | 1488 | * |
| 1489 | 1489 | * @param int $form_id The form ID. |
| 1490 | 1490 | * |
| 1491 | - * @return bool |
|
| 1491 | + * @return false|null |
|
| 1492 | 1492 | */ |
| 1493 | 1493 | function give_terms_agreement( $form_id ) { |
| 1494 | 1494 | $form_option = give_get_meta( $form_id, '_give_terms_option', true ); |
@@ -1666,7 +1666,7 @@ discard block |
||
| 1666 | 1666 | * @param int $form_id The form ID. |
| 1667 | 1667 | * @param array $args An array of form arguments. |
| 1668 | 1668 | * |
| 1669 | - * @return mixed |
|
| 1669 | + * @return boolean |
|
| 1670 | 1670 | */ |
| 1671 | 1671 | function give_show_goal_progress( $form_id, $args ) { |
| 1672 | 1672 | |
@@ -1686,7 +1686,7 @@ discard block |
||
| 1686 | 1686 | * |
| 1687 | 1687 | * @since 1.8 |
| 1688 | 1688 | * |
| 1689 | - * @param $form_id |
|
| 1689 | + * @param integer $form_id |
|
| 1690 | 1690 | * @param $args |
| 1691 | 1691 | * |
| 1692 | 1692 | * @return mixed|string |
@@ -1727,7 +1727,7 @@ discard block |
||
| 1727 | 1727 | * @param int $form_id The form ID. |
| 1728 | 1728 | * @param array $args An array of form arguments. |
| 1729 | 1729 | * |
| 1730 | - * @return void|bool |
|
| 1730 | + * @return false|null |
|
| 1731 | 1731 | */ |
| 1732 | 1732 | function give_form_content( $form_id, $args ) { |
| 1733 | 1733 | |
@@ -675,7 +675,7 @@ |
||
| 675 | 675 | /** |
| 676 | 676 | * This function will check whether the donor email is primary or additional. |
| 677 | 677 | * |
| 678 | - * @param $email Donor Email. |
|
| 678 | + * @param string $email Donor Email. |
|
| 679 | 679 | * |
| 680 | 680 | * @since 1.8.13 |
| 681 | 681 | * |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | * |
| 370 | 370 | * @param int|bool $payment_id A given payment |
| 371 | 371 | * |
| 372 | - * @return mixed void|false |
|
| 372 | + * @return false|null void|false |
|
| 373 | 373 | */ |
| 374 | 374 | public function __construct( $payment_id = false ) { |
| 375 | 375 | |
@@ -1088,7 +1088,7 @@ discard block |
||
| 1088 | 1088 | * |
| 1089 | 1089 | * @param string $note The note to add |
| 1090 | 1090 | * |
| 1091 | - * @return bool If the note was specified or not |
|
| 1091 | + * @return false|null If the note was specified or not |
|
| 1092 | 1092 | */ |
| 1093 | 1093 | public function add_note( $note = false ) { |
| 1094 | 1094 | // Bail if no note specified. |
@@ -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 ); |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | |
| 453 | 453 | /** |
| 454 | 454 | * @param $option_value |
| 455 | - * @param $value |
|
| 455 | + * @param boolean $value |
|
| 456 | 456 | * |
| 457 | 457 | * @return string |
| 458 | 458 | */ |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | * |
| 530 | 530 | * @since 1.8.14 |
| 531 | 531 | * |
| 532 | - * @param $file_id |
|
| 532 | + * @param integer $file_id |
|
| 533 | 533 | * |
| 534 | 534 | * @return bool|int |
| 535 | 535 | */ |