Test Failed
Push — master ( 315839...9b266f )
by Devin
05:39
created
includes/forms/functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
  * @since  1.0
313 313
  * @since  1.8.16 Add security check
314 314
  *
315
- * @return bool
315
+ * @return false|null
316 316
  */
317 317
 function give_listen_for_failed_payments() {
318 318
 
@@ -1343,7 +1343,7 @@  discard block
 block discarded – undo
1343 1343
  * @since 2.2.0
1344 1344
  *
1345 1345
  * @param array|integer   $price_or_level_id Price level data.
1346
- * @param boolean|integer $form_id           Donation Form ID.
1346
+ * @param integer $form_id           Donation Form ID.
1347 1347
  *
1348 1348
  * @return boolean
1349 1349
  */
@@ -1447,7 +1447,7 @@  discard block
 block discarded – undo
1447 1447
  *
1448 1448
  * @since 2.2.0
1449 1449
  *
1450
- * @return object
1450
+ * @return Give_Donor
1451 1451
  */
1452 1452
 function give_get_name_with_title_prefixes( $donor ) {
1453 1453
 
@@ -1492,7 +1492,7 @@  discard block
 block discarded – undo
1492 1492
  *
1493 1493
  * @since 2.2.0
1494 1494
  *
1495
- * @return array
1495
+ * @return string|boolean
1496 1496
  */
1497 1497
 function give_get_default_title_prefixes() {
1498 1498
 	/**
Please login to merge, or discard this patch.
includes/gateways/functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
  *
80 80
  * @since 1.0
81 81
  *
82
- * @param  $form_id      int ID of the Give Form
82
+ * @param  null|integer $form_id      int ID of the Give Form
83 83
  *
84 84
  * @return string Gateway ID
85 85
  */
Please login to merge, or discard this patch.
includes/gateways/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/admin/admin-actions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  *
21 21
  * @since 2.5.0
22 22
  *
23
- * @return void
23
+ * @return false|null
24 24
  */
25 25
 function give_stripe_connect_save_options() {
26 26
 
Please login to merge, or discard this patch.
includes/gateways/stripe/includes/class-give-stripe-customer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
 	 * @since  2.1
328 328
 	 * @access public
329 329
 	 *
330
-	 * @return void
330
+	 * @return false|null
331 331
 	 */
332 332
 	public function attach_source() {
333 333
 
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
@@ -432,7 +432,7 @@
 block discarded – undo
432 432
 		 *
433 433
 		 * @param float $amount Donation amount.
434 434
 		 *
435
-		 * @return mixed
435
+		 * @return double
436 436
 		 */
437 437
 		public function format_amount( $amount ) {
438 438
 
Please login to merge, or discard this patch.
includes/gateways/stripe/includes/give-stripe-helpers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
  * @param integer $donation_or_post_id Donation or wp post id.
553 553
  * @param bool    $check_enabled       Check if sequential-ordering_status is activated or not.
554 554
  *
555
- * @return bool|string
555
+ * @return false|string
556 556
  */
557 557
 function give_stripe_get_sequential_id( $donation_or_post_id, $check_enabled = true ) {
558 558
 	// Check if enabled.
@@ -1162,7 +1162,7 @@  discard block
 block discarded – undo
1162 1162
  *
1163 1163
  * @since  2.5.0
1164 1164
  *
1165
- * @return string
1165
+ * @return double
1166 1166
  */
1167 1167
 function give_stripe_dollars_to_cents( $dollars ) {
1168 1168
 	return round( $dollars, give_currency_decimal_filter() ) * 100;
Please login to merge, or discard this patch.
includes/misc-functions.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 /**
224 224
  * Retrieve Payment Key of the History Access Session.
225 225
  *
226
- * @return array|string
226
+ * @return boolean
227 227
  * @since 1.8.17
228 228
  */
229 229
 function give_get_history_session() {
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
 /**
521 521
  * Show Donation Forms Post Type in Appearance > Menus by default on fresh install.
522 522
  *
523
- * @return bool
523
+ * @return false|null
524 524
  * @todo  Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828).
525 525
  *
526 526
  * @since 1.8.14
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
 /**
862 862
  * Check if terms enabled or not for form.
863 863
  *
864
- * @param $form_id
864
+ * @param integer $form_id
865 865
  *
866 866
  * @return bool
867 867
  * @since 1.8
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
  * @param int    $id
984 984
  * @param string $meta_key
985 985
  * @param mixed  $meta_value
986
- * @param mixed  $prev_value
986
+ * @param string  $prev_value
987 987
  * @param string $meta_type
988 988
  *
989 989
  * @return mixed
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
  * array_column() (PHP 5.5) but also supports objects.
1271 1271
  *
1272 1272
  * @param array      $list      List of objects or arrays
1273
- * @param int|string $field     Field from the object to place instead of the entire object
1273
+ * @param string $field     Field from the object to place instead of the entire object
1274 1274
  * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
1275 1275
  *                              Default null.
1276 1276
  *
@@ -2217,7 +2217,7 @@  discard block
 block discarded – undo
2217 2217
  *
2218 2218
  * @param $args
2219 2219
  *
2220
- * @return bool|mixed
2220
+ * @return string|null
2221 2221
  * @since 2.4.1
2222 2222
  */
2223 2223
 function give_display_donation_receipt( $args ) {
@@ -2320,7 +2320,7 @@  discard block
 block discarded – undo
2320 2320
  * @param      $plugin_slug
2321 2321
  * @param bool        $by_plugin_name
2322 2322
  *
2323
- * @return mixed|void
2323
+ * @return string
2324 2324
  * @since 2.5.0
2325 2325
  */
2326 2326
 function give_get_addon_readme_url( $plugin_slug, $by_plugin_name = false ) {
Please login to merge, or discard this patch.