Test Failed
Push — issue/2900 ( f2122b )
by Ravinder
07:32
created
includes/admin/donors/donor-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
  * Connect and Reconnect Donor with User profile.
90 90
  * @todo  $address is unnecessary param because we are store address to user.
91 91
  *
92
- * @param object $donor      Donor Object.
92
+ * @param Give_Donor $donor      Donor Object.
93 93
  * @param array  $donor_data Donor Post Variables.
94 94
  * @param array  $address    Address Information.
95 95
  *
Please login to merge, or discard this patch.
includes/class-give-comment.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	 * @param int $comment_id
422 422
 	 * @param WP_Comment $comment
423 423
 	 *
424
-	 * @return mixed
424
+	 * @return string
425 425
 	 */
426 426
 	public function __get_comment_author( $author, $comment_id, $comment ) {
427 427
 		if( in_array( $comment->comment_type, $this->comment_types ) ){
@@ -444,6 +444,7 @@  discard block
 block discarded – undo
444 444
 	 * @access public
445 445
 	 *
446 446
 	 * @param array @comment_types
447
+	 * @param string[] $comment_types
447 448
 	 *
448 449
 	 * @return array
449 450
 	 */
Please login to merge, or discard this patch.
includes/class-give-donor-wall.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	 * @type bool   $show_goal           Whether to display form goal. Default 'true'.
70 70
 	 * @type string $avatar_size         Avatar image size in pixels without the "px". Default "
71 71
 	 * }
72
-	 * @return string|bool The markup of the form grid or false.
72
+	 * @return string|null The markup of the form grid or false.
73 73
 	 */
74 74
 	public function donor_grid_shortcode( $atts ) {
75 75
 
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
@@ -999,7 +999,7 @@
 block discarded – undo
999 999
 	 * @access public
1000 1000
 	 *
1001 1001
 	 * @param  string $meta_key   Metadata name. Default is empty.
1002
-	 * @param  mixed  $meta_value Optional. Metadata value. Default is empty.
1002
+	 * @param  string  $meta_value Optional. Metadata value. Default is empty.
1003 1003
 	 *
1004 1004
 	 * @return bool               False for failure. True for success.
1005 1005
 	 */
Please login to merge, or discard this patch.
includes/donors/actions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * @param int   $donation_id
8 8
  * @param array $donation_data
9 9
  *
10
- * @return bool
10
+ * @return false|null
11 11
  */
12 12
 function __give_insert_donor_donation_comment( $donation_id, $donation_data ) {
13 13
 	if ( empty( $_POST['give_comment'] ) ) {
Please login to merge, or discard this patch.
includes/donors/frontend-donor-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
  *
47 47
  * @since 2.1
48 48
  *
49
- * @param string|int $id_or_email
49
+ * @param string $id_or_email
50 50
  *
51 51
  * @return bool
52 52
  */
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
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
  *
565 565
  * @since 1.0
566 566
  *
567
- * @return int $earnings Earnings
567
+ * @return double $earnings Earnings
568 568
  */
569 569
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
570 570
 	// This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead.
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
  *
881 881
  * @since 1.0
882 882
  *
883
- * @return int $form_id Form ID.
883
+ * @return string $form_id Form ID.
884 884
  */
885 885
 function give_get_payment_form_id( $payment_id ) {
886 886
 	$payment = new Give_Payment( $payment_id );
@@ -1385,7 +1385,7 @@  discard block
 block discarded – undo
1385 1385
  *
1386 1386
  * Retrieves the form title and appends the level name if present.
1387 1387
  *
1388
- * @param int|Give_Payment $donation Donation Data Object.
1388
+ * @param Give_Payment $donation Donation Data Object.
1389 1389
  * @param array            $args     a. only_level = If set to true will only return the level name if multi-level
1390 1390
  *                                   enabled. b. separator  = The separator between the Form Title and the Donation
1391 1391
  *                                   Level.
Please login to merge, or discard this patch.
includes/shortcodes.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -708,7 +708,7 @@
 block discarded – undo
708 708
  * @type string $display_style       How the form is displayed, either in new page or modal popup.
709 709
  *                                       Default 'redirect'. Accepts 'redirect', 'modal'.
710 710
  * }
711
- * @return string|bool The markup of the form grid or false.
711
+ * @return string|null The markup of the form grid or false.
712 712
  */
713 713
 function give_form_grid_shortcode( $atts ) {
714 714
 
Please login to merge, or discard this patch.