Test Failed
Push — issues/2397 ( f367c1...92dbfa )
by Ravinder
04:29
created
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/payments/functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
  *
568 568
  * @since 1.0
569 569
  *
570
- * @return int $earnings Earnings
570
+ * @return double $earnings Earnings
571 571
  */
572 572
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
573 573
 
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
  *
865 865
  * @since 1.0
866 866
  *
867
- * @return array $user_info User Info Meta Values.
867
+ * @return string $user_info User Info Meta Values.
868 868
  */
869 869
 function give_get_payment_meta_user_info( $payment_id ) {
870 870
 	$payment = new Give_Payment( $payment_id );
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
  *
882 882
  * @since 1.0
883 883
  *
884
- * @return int $form_id Form ID.
884
+ * @return string $form_id Form ID.
885 885
  */
886 886
 function give_get_payment_form_id( $payment_id ) {
887 887
 	$payment = new Give_Payment( $payment_id );
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
  * and give_format_amount() to format the amount correctly in case of formatted amount.
1189 1189
  *
1190 1190
  * @param int|Give_Payment $donation    Donation ID or Donation Object.
1191
- * @param bool|array       $format_args Currency Formatting Arguments.
1191
+ * @param string       $format_args Currency Formatting Arguments.
1192 1192
  *
1193 1193
  * @since 1.0
1194 1194
  * @since 1.8.17 Added filter and internally use functions.
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.