@@ -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 | */ |
@@ -423,7 +423,6 @@ discard block |
||
| 423 | 423 | * Import CSV in DB |
| 424 | 424 | * |
| 425 | 425 | * @param int $file_id CSV id |
| 426 | - * @param array $mapto Map csv to meta key. |
|
| 427 | 426 | * @param int $start Start from which csv line. |
| 428 | 427 | * @param int $end End from which csv line. |
| 429 | 428 | */ |
@@ -641,6 +640,7 @@ discard block |
||
| 641 | 640 | * Check if Import donation is duplicate |
| 642 | 641 | * |
| 643 | 642 | * @since 1.8.13 |
| 643 | + * @param Give_Donate_Form $form |
|
| 644 | 644 | */ |
| 645 | 645 | function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) { |
| 646 | 646 | $return = false; |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | * |
| 855 | 855 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
| 856 | 856 | * |
| 857 | - * @return bool |
|
| 857 | + * @return false|null |
|
| 858 | 858 | */ |
| 859 | 859 | function give_donation_metabox_menu() { |
| 860 | 860 | |
@@ -1525,7 +1525,7 @@ discard block |
||
| 1525 | 1525 | * @since 1.8.13 |
| 1526 | 1526 | * |
| 1527 | 1527 | * @param array $list List of objects or arrays |
| 1528 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1528 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1529 | 1529 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1530 | 1530 | * Default null. |
| 1531 | 1531 | * |
@@ -902,7 +902,7 @@ discard block |
||
| 902 | 902 | * @access public |
| 903 | 903 | * |
| 904 | 904 | * @param string $meta_key Metadata key. Default is empty. |
| 905 | - * @param mixed $meta_value Metadata value. |
|
| 905 | + * @param integer $meta_value Metadata value. |
|
| 906 | 906 | * @param mixed $prev_value Optional. Previous value to check before removing. Default is empty. |
| 907 | 907 | * |
| 908 | 908 | * @return bool False on failure, true if success. |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | * @access public |
| 919 | 919 | * |
| 920 | 920 | * @param string $meta_key Metadata name. Default is empty. |
| 921 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 921 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 922 | 922 | * |
| 923 | 923 | * @return bool False for failure. True for success. |
| 924 | 924 | */ |