Test Failed
Push — issues/370 ( 90279e )
by Ravinder
05:35
created
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/misc-functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
  *
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.