Test Failed
Push — issues/1944 ( 986f5c...2398f6 )
by Ravinder
04:43
created
includes/admin/donors/class-donor-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
 	 * @access public
259 259
 	 * @since  1.0
260 260
 	 *
261
-	 * @return mixed string If search is present, false otherwise.
261
+	 * @return string|false string If search is present, false otherwise.
262 262
 	 */
263 263
 	public function get_search() {
264 264
 		return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false;
Please login to merge, or discard this patch.
includes/admin/donors/donor-actions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @since 1.0
23 23
  *
24
- * @return array|bool $output Response messages
24
+ * @return false|null $output Response messages
25 25
  */
26 26
 function give_edit_donor( $args ) {
27 27
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
  *
228 228
  * @since 1.0
229 229
  *
230
- * @return int Whether it was a successful deletion.
230
+ * @return false|null Whether it was a successful deletion.
231 231
  */
232 232
 function give_donor_delete( $args ) {
233 233
 
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
  *
522 522
  * @since  1.7
523 523
  *
524
- * @return bool|null
524
+ * @return false|null
525 525
  */
526 526
 function give_remove_donor_email() {
527 527
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
  *
566 566
  * @since  1.7
567 567
  *
568
- * @return bool|null
568
+ * @return false|null
569 569
  */
570 570
 function give_set_donor_primary_email() {
571 571
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
Please login to merge, or discard this patch.
includes/forms/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
  *
156 156
  * Used to redirect a user back to the donation form if there are errors present.
157 157
  *
158
- * @param array $args
158
+ * @param string $args
159 159
  *
160 160
  * @access public
161 161
  * @since  1.0
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
  * @since  1.0
302 302
  * @since  1.8.16 Add security check
303 303
  *
304
- * @return bool
304
+ * @return false|null
305 305
  */
306 306
 function give_listen_for_failed_payments() {
307 307
 
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
  *
742 742
  * @param int $form_id ID number of the form to retrieve the minimum price for
743 743
  *
744
- * @return mixed string|int Minimum price of the form
744
+ * @return string string|int Minimum price of the form
745 745
  */
746 746
 function give_get_form_minimum_price( $form_id = 0 ) {
747 747
 
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
  *
703 703
  * @since 1.0
704 704
  *
705
- * @return int $earnings Earnings
705
+ * @return double $earnings Earnings
706 706
  */
707 707
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
708 708
 	// This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead.
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
  *
1010 1010
  * @since 1.0
1011 1011
  *
1012
- * @return int $form_id Form ID.
1012
+ * @return string $form_id Form ID.
1013 1013
  */
1014 1014
 function give_get_payment_form_id( $payment_id ) {
1015 1015
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
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/class-give-db-donors.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * NOTE: This should not be called directly as it does not make necessary changes to
162 162
 	 * the payment meta and logs. Use give_donor_delete() instead.
163 163
 	 *
164
-	 * @param  bool|string|int $_id_or_email ID or Email of Donor.
164
+	 * @param  integer $_id_or_email ID or Email of Donor.
165 165
 	 *
166 166
 	 * @since  1.0
167 167
 	 * @access public
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 	 * @access public
359 359
 	 *
360 360
 	 * @param  string $field ID or email. Default is 'id'.
361
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
361
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
362 362
 	 *
363 363
 	 * @return mixed         Upon success, an object of the donor. Upon failure, NULL
364 364
 	 */
Please login to merge, or discard this patch.
includes/install.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@
 block discarded – undo
393 393
  *
394 394
  * @since 1.8.11
395 395
  *
396
- * @return void
396
+ * @return false|null
397 397
  */
398 398
 function give_create_pages() {
399 399
 
Please login to merge, or discard this patch.
includes/admin/admin-actions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  *
41 41
  * @since 1.8
42 42
  *
43
- * @return bool
43
+ * @return false|null
44 44
  */
45 45
 function give_redirect_to_clean_url_admin_pages() {
46 46
 	// Give admin pages.
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
  * @access public
990 990
  * @since  2.0
991 991
  *
992
- * @return bool
992
+ * @return false|null
993 993
  */
994 994
 function give_update_donor_name_on_user_update( $user_id = 0 ) {
995 995
 
@@ -1029,7 +1029,7 @@  discard block
 block discarded – undo
1029 1029
  * @param  int          $user_id       User ID.
1030 1030
  * @param  WP_User|bool $old_user_data User data.
1031 1031
  *
1032
- * @return bool
1032
+ * @return false|null
1033 1033
  */
1034 1034
 function give_update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) {
1035 1035
 
Please login to merge, or discard this patch.
includes/admin/class-give-settings.php 1 patch
Doc Comments   +4 added lines, -4 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
@@ -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.