@@ -1283,7 +1283,7 @@ |
||
1283 | 1283 | * |
1284 | 1284 | * @param $field |
1285 | 1285 | * |
1286 | - * @return string |
|
1286 | + * @return integer |
|
1287 | 1287 | */ |
1288 | 1288 | function _give_set_field_give_id_default_value( $field ) { |
1289 | 1289 | return 0; |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | * |
391 | 391 | * @since 2.0 |
392 | 392 | * @access public |
393 | - * @return bool|null |
|
393 | + * @return false|null |
|
394 | 394 | */ |
395 | 395 | public function preview_email() { |
396 | 396 | // Bailout. |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | * |
527 | 527 | * @since 2.0 |
528 | 528 | * @access public |
529 | - * @return bool|null |
|
529 | + * @return false|null |
|
530 | 530 | */ |
531 | 531 | public function send_preview_email() { |
532 | 532 | // Bailout. |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * metadata entries with the specified value. |
17 | 17 | * Otherwise, update all entries. |
18 | 18 | * |
19 | - * @return mixed |
|
19 | + * @return null|boolean |
|
20 | 20 | */ |
21 | 21 | function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) { |
22 | 22 | // Bailout. |
@@ -523,7 +523,7 @@ |
||
523 | 523 | * @since 1.7 |
524 | 524 | * @access public |
525 | 525 | * |
526 | - * @return bool |
|
526 | + * @return false|null |
|
527 | 527 | */ |
528 | 528 | public function delete_cache() { |
529 | 529 | // Add log related keys to delete. |
@@ -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; |
@@ -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 ); |
@@ -258,7 +258,7 @@ |
||
258 | 258 | * @access public |
259 | 259 | * @since 1.0 |
260 | 260 | * |
261 | - * @return mixed string If search is present, false otherwise. |
|
261 | + * @return string|false string If search is present, false otherwise. |
|
262 | 262 | */ |
263 | 263 | public function get_search() { |
264 | 264 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | /** |
507 | 507 | * Get donor email html. |
508 | 508 | * |
509 | - * @param object $payment Contains all the data of the payment. |
|
509 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
510 | 510 | * |
511 | 511 | * @access public |
512 | 512 | * @since 1.0 |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | /** |
535 | 535 | * Get Row Actions |
536 | 536 | * |
537 | - * @param object $payment Payment Data. |
|
537 | + * @param Give_Payment $payment Payment Data. |
|
538 | 538 | * |
539 | 539 | * @since 1.6 |
540 | 540 | * |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | /** |
656 | 656 | * Get donor html. |
657 | 657 | * |
658 | - * @param object $payment Contains all the data of the payment. |
|
658 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
659 | 659 | * |
660 | 660 | * @access public |
661 | 661 | * @since 1.0 |
@@ -242,7 +242,7 @@ |
||
242 | 242 | * @since 1.0 |
243 | 243 | * @access public |
244 | 244 | * |
245 | - * @return bool |
|
245 | + * @return boolean|null |
|
246 | 246 | */ |
247 | 247 | public function check_for_token() { |
248 | 248 |