Test Failed
Push — release/2.0 ( d9fa8a...3e1656 )
by Ravinder
04:59
created
includes/payments/class-give-payment.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
includes/admin/tools/data/class-give-tools-delete-import-donors.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.
includes/class-give-donor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -918,7 +918,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
includes/admin/tools/import/class-give-import-donations.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		 */
Please login to merge, or discard this patch.
includes/class-give-db-donors.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 * NOTE: This should not be called directly as it does not make necessary changes to
166 166
 	 * the payment meta and logs. Use give_donor_delete() instead.
167 167
 	 *
168
-	 * @param  bool|string|int $_id_or_email ID or Email of Donor.
168
+	 * @param  integer $_id_or_email ID or Email of Donor.
169 169
 	 *
170 170
 	 * @since  1.0
171 171
 	 * @access public
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	 * @since  1.4.3
368 368
 	 * @access public
369 369
 	 *
370
-	 * @return bool
370
+	 * @return false|null
371 371
 	 */
372 372
 	public function update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) {
373 373
 
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 	 * @access public
425 425
 	 *
426 426
 	 * @param  string $field ID or email. Default is 'id'.
427
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
427
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
428 428
 	 *
429 429
 	 * @return mixed         Upon success, an object of the donor. Upon failure, NULL
430 430
 	 */
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
 	 * @access public
668 668
 	 * @since  2.0
669 669
 	 *
670
-	 * @return bool
670
+	 * @return false|null
671 671
 	 */
672 672
 	public function update_donor_info_on_user_update( $user_id = 0 ) {
673 673
 
Please login to merge, or discard this patch.
includes/forms/template.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @since 1.0
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
 
@@ -1538,7 +1538,7 @@  discard block
 block discarded – undo
1538 1538
  *
1539 1539
  * @param  int $form_id The form ID.
1540 1540
  *
1541
- * @return bool
1541
+ * @return false|null
1542 1542
  */
1543 1543
 function give_terms_agreement( $form_id ) {
1544 1544
 	$form_option = give_get_meta( $form_id, '_give_terms_option', true );
@@ -1716,7 +1716,7 @@  discard block
 block discarded – undo
1716 1716
  * @param  int   $form_id The form ID.
1717 1717
  * @param  array $args    An array of form arguments.
1718 1718
  *
1719
- * @return mixed
1719
+ * @return boolean
1720 1720
  */
1721 1721
 function give_show_goal_progress( $form_id, $args ) {
1722 1722
 
@@ -1736,7 +1736,7 @@  discard block
 block discarded – undo
1736 1736
  *
1737 1737
  * @since  1.8
1738 1738
  *
1739
- * @param  $form_id
1739
+ * @param  integer $form_id
1740 1740
  * @param  $args
1741 1741
  *
1742 1742
  * @return mixed|string
@@ -1777,7 +1777,7 @@  discard block
 block discarded – undo
1777 1777
  * @param  int   $form_id The form ID.
1778 1778
  * @param  array $args    An array of form arguments.
1779 1779
  *
1780
- * @return void|bool
1780
+ * @return false|null
1781 1781
  */
1782 1782
 function give_form_content( $form_id, $args ) {
1783 1783
 
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
  * @param  int $year Year number. Default is null.
693 693
  * @param  int $hour Hour number. Default is null.
694 694
  *
695
- * @return int $earnings  Earnings
695
+ * @return double $earnings  Earnings
696 696
  */
697 697
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
698 698
 	// This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead.
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
  * @param string $meta_key The meta key to pull.
953 953
  * @param bool $single Pull single meta entry or as an object.
954 954
  *
955
- * @return mixed $meta Payment Meta.
955
+ * @return string $meta Payment Meta.
956 956
  */
957 957
 function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) {
958 958
 	$payment = new Give_Payment( $payment_id );
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
  *
1001 1001
  * @param int $payment_id Payment ID.
1002 1002
  *
1003
- * @return int $form_id Form ID.
1003
+ * @return string $form_id Form ID.
1004 1004
  */
1005 1005
 function give_get_payment_form_id( $payment_id ) {
1006 1006
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
includes/admin/admin-filters.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
  *
65 65
  * @param   string $value
66 66
  *
67
- * @return  mixed
67
+ * @return  string
68 68
  */
69 69
 function __give_validate_decimal_separator_setting_field( $value ) {
70 70
 	$thousand_separator = give_clean( $_POST['thousands_separator'] );
Please login to merge, or discard this patch.
includes/import-functions.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -666,6 +666,7 @@
 block discarded – undo
666 666
  * Check if Import donation is duplicate
667 667
  *
668 668
  * @since 1.8.13
669
+ * @param Give_Donate_Form $form
669 670
  */
670 671
 function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) {
671 672
 	$return = false;
Please login to merge, or discard this patch.