@@ -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. |
@@ -388,6 +388,9 @@ discard block |
||
| 388 | 388 | } |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | + /** |
|
| 392 | + * @param boolean $value |
|
| 393 | + */ |
|
| 391 | 394 | static function selected( $option_value, $value ) { |
| 392 | 395 | $selected = ''; |
| 393 | 396 | if ( stristr( $value, $option_value ) ) { |
@@ -456,6 +459,9 @@ discard block |
||
| 456 | 459 | <?php |
| 457 | 460 | } |
| 458 | 461 | |
| 462 | + /** |
|
| 463 | + * @param integer $file_id |
|
| 464 | + */ |
|
| 459 | 465 | static function get_csv_total( $file_id ) { |
| 460 | 466 | $total = false; |
| 461 | 467 | if ( $file_id ) { |
@@ -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 ); |
@@ -918,7 +918,7 @@ |
||
| 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 | */ |
@@ -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; |
@@ -1414,7 +1414,7 @@ |
||
| 1414 | 1414 | * @since 1.8.13 |
| 1415 | 1415 | * |
| 1416 | 1416 | * @param array $list List of objects or arrays |
| 1417 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1417 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1418 | 1418 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1419 | 1419 | * Default null. |
| 1420 | 1420 | * |