Test Failed
Push — issues/2442 ( 2a8182 )
by Ravinder
04:31
created
includes/payments/class-give-payment.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 *
393 393
 	 * @param  int|bool $payment_id A given payment
394 394
 	 *
395
-	 * @return mixed void|false
395
+	 * @return false|null void|false
396 396
 	 */
397 397
 	public function __construct( $payment_id = false ) {
398 398
 
@@ -1106,7 +1106,7 @@  discard block
 block discarded – undo
1106 1106
 	 *
1107 1107
 	 * @param  string|bool $note The note to add
1108 1108
 	 *
1109
-	 * @return bool           If the note was specified or not
1109
+	 * @return false|null           If the note was specified or not
1110 1110
 	 */
1111 1111
 	public function add_note( $note = false ) {
1112 1112
 		// Bail if no note specified.
Please login to merge, or discard this patch.
includes/admin/payments/class-payments-table.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 	/**
468 468
 	 * Get donor email html.
469 469
 	 *
470
-	 * @param object $payment Contains all the data of the payment.
470
+	 * @param Give_Payment $payment Contains all the data of the payment.
471 471
 	 *
472 472
 	 * @access public
473 473
 	 * @since  1.0
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
 	/**
491 491
 	 * Get Row Actions
492 492
 	 *
493
-	 * @param object $payment Payment Data.
493
+	 * @param Give_Payment $payment Payment Data.
494 494
 	 *
495 495
 	 * @since 1.6
496 496
 	 *
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
 	/**
531 531
 	 *  Get payment status html.
532 532
 	 *
533
-	 * @param object $payment Contains all the data of the payment.
533
+	 * @param Give_Payment $payment Contains all the data of the payment.
534 534
 	 *
535 535
 	 * @access public
536 536
 	 * @since  1.0
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 	/**
581 581
 	 * Get donor html.
582 582
 	 *
583
-	 * @param object $payment Contains all the data of the payment.
583
+	 * @param Give_Payment $payment Contains all the data of the payment.
584 584
 	 *
585 585
 	 * @access public
586 586
 	 * @since  1.0
Please login to merge, or discard this patch.
includes/admin/class-give-settings.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 *
73 73
 	 * @param $url
74 74
 	 *
75
-	 * @return mixed
75
+	 * @return string
76 76
 	 */
77 77
 	public function give_update_cmb_meta_box_url( $url ) {
78 78
 		// Path to Give's CMB
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
  * @since      1.3.5
936 936
  *
937 937
  * @param $array
938
- * @param $position |int|string Expects an array key or 'id' of the settings field to appear after
938
+ * @param string $position |int|string Expects an array key or 'id' of the settings field to appear after
939 939
  * @param $insert   |array a valid array of options to insert
940 940
  *
941 941
  * @return array
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
  * @since 1.0
975 975
  *
976 976
  * @param array $field_arr
977
- * @param array $saved_values
977
+ * @param string|boolean $saved_values
978 978
  *
979 979
  * @return void
980 980
  */
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
  * @since  1.0
1010 1010
  *
1011 1011
  * @param  array $field_arr
1012
- * @param  array $saved_value
1012
+ * @param  string|boolean $saved_value
1013 1013
  *
1014 1014
  * @return void
1015 1015
  */
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
  * @params $string text
1164 1164
  * @params $filter array
1165 1165
  *
1166
- * @return text $string
1166
+ * @return string $string
1167 1167
  */
1168 1168
 function give_slug_to_title( $string, $filters = array() ) {
1169 1169
 
Please login to merge, or discard this patch.
includes/ajax-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -521,7 +521,7 @@
 block discarded – undo
521 521
  *
522 522
  * @since 1.8.17
523 523
  *
524
- * @return bool
524
+ * @return false|null
525 525
  */
526 526
 function give_confirm_email_for_donation_access() {
527 527
 
Please login to merge, or discard this patch.
includes/login-register.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @param string $user_login Username
175 175
  * @param string $user_pass  Password
176 176
  *
177
- * @return bool
177
+ * @return false|null
178 178
  */
179 179
 function give_log_user_in( $user_id, $user_login, $user_pass ) {
180 180
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
  *
216 216
  * @param array $data Data sent from the register form
217 217
  *
218
- * @return bool
218
+ * @return false|null
219 219
  */
220 220
 function give_process_register_form( $data ) {
221 221
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
  *
302 302
  * @since 1.8.17
303 303
  *
304
- * @return bool
304
+ * @return boolean|null
305 305
  */
306 306
 function give_email_access_login() {
307 307
 
Please login to merge, or discard this patch.
includes/misc-functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
  *
213 213
  * @since 1.8.17
214 214
  *
215
- * @return array|string
215
+ * @return boolean
216 216
  */
217 217
 function give_get_history_session() {
218 218
 	return (bool) Give()->session->get( 'history_access' );
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
  *
686 686
  * @todo  Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828).
687 687
  *
688
- * @return bool
688
+ * @return false|null
689 689
  */
690 690
 function give_donation_metabox_menu() {
691 691
 
@@ -1084,7 +1084,7 @@  discard block
 block discarded – undo
1084 1084
  * @param int    $id
1085 1085
  * @param string $meta_key
1086 1086
  * @param mixed  $meta_value
1087
- * @param mixed  $prev_value
1087
+ * @param string  $prev_value
1088 1088
  *
1089 1089
  * @return mixed
1090 1090
  */
@@ -1291,7 +1291,7 @@  discard block
 block discarded – undo
1291 1291
  * @since 1.8.13
1292 1292
  *
1293 1293
  * @param array      $list      List of objects or arrays
1294
- * @param int|string $field     Field from the object to place instead of the entire object
1294
+ * @param string $field     Field from the object to place instead of the entire object
1295 1295
  * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
1296 1296
  *                              Default null.
1297 1297
  *
Please login to merge, or discard this patch.
includes/class-give-email-access.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@
 block discarded – undo
242 242
 	 * @since  1.0
243 243
 	 * @access public
244 244
 	 *
245
-	 * @return bool
245
+	 * @return boolean|null
246 246
 	 */
247 247
 	public function check_for_token() {
248 248
 
Please login to merge, or discard this patch.