Test Failed
Push — fix/broken-phpunit-tests ( b32f1e...963e9e )
by Ravinder
07:40
created
includes/database/class-give-db-donors.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
 	 * @access public
400 400
 	 *
401 401
 	 * @param  string $field ID or email. Default is 'id'.
402
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
402
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
403 403
 	 *
404 404
 	 * @return mixed         Upon success, an object of the donor. Upon failure, NULL
405 405
 	 */
Please login to merge, or discard this patch.
includes/forms/functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
  * @since  1.0
297 297
  * @since  1.8.16 Add security check
298 298
  *
299
- * @return bool
299
+ * @return false|null
300 300
  */
301 301
 function give_listen_for_failed_payments() {
302 302
 	$payment_id = ! empty( $_GET['payment-id'] ) ? absint( $_GET['payment-id'] ) : 0;
@@ -1326,7 +1326,7 @@  discard block
 block discarded – undo
1326 1326
  * @since 2.2.0
1327 1327
  *
1328 1328
  * @param array|integer   $price_or_level_id Price level data.
1329
- * @param boolean|integer $form_id           Donation Form ID.
1329
+ * @param integer $form_id           Donation Form ID.
1330 1330
  *
1331 1331
  * @return boolean
1332 1332
  */
@@ -1430,7 +1430,7 @@  discard block
 block discarded – undo
1430 1430
  *
1431 1431
  * @since 2.2.0
1432 1432
  *
1433
- * @return object
1433
+ * @return Give_Donor
1434 1434
  */
1435 1435
 function give_get_name_with_title_prefixes( $donor ) {
1436 1436
 
@@ -1475,7 +1475,7 @@  discard block
 block discarded – undo
1475 1475
  *
1476 1476
  * @since 2.2.0
1477 1477
  *
1478
- * @return array
1478
+ * @return string|boolean
1479 1479
  */
1480 1480
 function give_get_default_title_prefixes() {
1481 1481
 	/**
Please login to merge, or discard this patch.
includes/forms/template.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * @param array $args An array of form arguments.
21 21
  *
22
- * @return string Donation form.
22
+ * @return false|null Donation form.
23 23
  * @since 1.0
24 24
  */
25 25
 function give_get_donation_form( $args = [] ) {
@@ -1744,7 +1744,7 @@  discard block
 block discarded – undo
1744 1744
  *
1745 1745
  * @param int $form_id The form ID.
1746 1746
  *
1747
- * @return bool
1747
+ * @return false|null
1748 1748
  * @since  1.0
1749 1749
  */
1750 1750
 function give_terms_agreement( $form_id ) {
@@ -1952,7 +1952,7 @@  discard block
 block discarded – undo
1952 1952
  * @param int   $form_id The form ID.
1953 1953
  * @param array $args    An array of form arguments.
1954 1954
  *
1955
- * @return mixed
1955
+ * @return boolean
1956 1956
  * @since        1.6   Add template for Give Goals Shortcode.
1957 1957
  *               More info is on https://github.com/impress-org/give/issues/411
1958 1958
  *
@@ -1987,7 +1987,7 @@  discard block
 block discarded – undo
1987 1987
  * @param int $total      Total amount based on shortcode parameter.
1988 1988
  * @param int $total_goal Total Goal amount passed by Admin.
1989 1989
  *
1990
- * @return mixed
1990
+ * @return boolean
1991 1991
  * @since  2.1
1992 1992
  */
1993 1993
 function give_show_goal_totals_progress( $total, $total_goal ) {
@@ -2016,7 +2016,7 @@  discard block
 block discarded – undo
2016 2016
 /**
2017 2017
  * Get form content position.
2018 2018
  *
2019
- * @param  $form_id
2019
+ * @param  integer $form_id
2020 2020
  * @param  $args
2021 2021
  *
2022 2022
  * @return mixed|string
@@ -2053,7 +2053,7 @@  discard block
 block discarded – undo
2053 2053
  * @param int   $form_id The form ID.
2054 2054
  * @param array $args    An array of form arguments.
2055 2055
  *
2056
- * @return void|bool
2056
+ * @return false|null
2057 2057
  * @since  1.0
2058 2058
  */
2059 2059
 function give_form_content( $form_id, $args ) {
@@ -2372,7 +2372,7 @@  discard block
 block discarded – undo
2372 2372
  * @param int   $id    ID of the form.
2373 2373
  * @param array $args  Additional args.
2374 2374
  *
2375
- * @return array
2375
+ * @return string[]
2376 2376
  * @since 2.1
2377 2377
  */
2378 2378
 function add_class_for_form_grid( $class, $id, $args ) {
@@ -2390,7 +2390,6 @@  discard block
 block discarded – undo
2390 2390
 /**
2391 2391
  * Add hidden field to Form Grid page
2392 2392
  *
2393
- * @param int              $form_id The form ID.
2394 2393
  * @param array            $args    An array of form arguments.
2395 2394
  * @param Give_Donate_Form $form    Form object.
2396 2395
  *
Please login to merge, or discard this patch.
includes/gateways/paypal/paypal-standard.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -598,7 +598,7 @@
 block discarded – undo
598 598
  * @param int   $payment_id   Payment ID
599 599
  * @param array $payment_data Array of payment data.
600 600
  *
601
- * @return mixed|string
601
+ * @return string
602 602
  */
603 603
 function give_build_paypal_url( $payment_id, $payment_data ) {
604 604
 	// Only send to PayPal if the pending payment is created successfully.
Please login to merge, or discard this patch.
includes/gateways/stripe/includes/class-give-stripe-gateway.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -480,7 +480,7 @@
 block discarded – undo
480 480
 		 *
481 481
 		 * @param float $amount Donation amount.
482 482
 		 *
483
-		 * @return mixed
483
+		 * @return integer
484 484
 		 */
485 485
 		public function format_amount( $amount ) {
486 486
 			return Money::of( $amount, give_get_currency() )->getMinorAmount();
Please login to merge, or discard this patch.
includes/gateways/stripe/includes/give-stripe-helpers.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
  *
605 605
  * @since 2.5.0
606 606
  *
607
- * @return int
607
+ * @return double
608 608
  */
609 609
 function give_stripe_get_application_fee_amount( $amount ) {
610 610
 	return round( $amount * give_stripe_get_application_fee_percentage() / 100, 0 );
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
  * @since  2.5.0
1040 1040
  * @since 2.9.2  Return amount in cent only if currency is not zero-decimal currency.
1041 1041
  *
1042
- * @return string
1042
+ * @return integer
1043 1043
  */
1044 1044
 function give_stripe_dollars_to_cents( $dollars ) {
1045 1045
 	return Money::of( $dollars, give_get_currency() )->getMinorAmount();
@@ -1054,7 +1054,7 @@  discard block
 block discarded – undo
1054 1054
  *
1055 1055
  * @since 2.5.4
1056 1056
  *
1057
- * @return mixed
1057
+ * @return integer|null
1058 1058
  */
1059 1059
 function give_stripe_format_amount( $amount ) {
1060 1060
 
@@ -1375,7 +1375,7 @@  discard block
 block discarded – undo
1375 1375
  *
1376 1376
  * @since 2.7.0
1377 1377
  *
1378
- * @return array
1378
+ * @return string
1379 1379
  */
1380 1380
 function give_stripe_get_default_account( $form_id = 0 ) {
1381 1381
 
Please login to merge, or discard this patch.
src/API/Endpoints/Reports/AverageDonation.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
 	}
59 59
 
60 60
 
61
+	/**
62
+	 * @param string $intervalStr
63
+	 */
61 64
 	public function get_data( $start, $end, $intervalStr ) {
62 65
 
63 66
 		$tooltips = [];
Please login to merge, or discard this patch.
src/API/Endpoints/Reports/Income.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
 		return $data;
46 46
 	}
47 47
 
48
+	/**
49
+	 * @param string $intervalStr
50
+	 */
48 51
 	public function get_data( $start, $end, $intervalStr ) {
49 52
 
50 53
 		$tooltips = [];
Please login to merge, or discard this patch.
src/API/Endpoints/Reports/IncomeBreakdown.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
 		return $data;
42 42
 	}
43 43
 
44
+	/**
45
+	 * @param string $intervalStr
46
+	 */
44 47
 	public function get_data( $start, $end, $intervalStr ) {
45 48
 
46 49
 		$data = [];
Please login to merge, or discard this patch.