Test Failed
Push — issues/2328 ( 4944c2 )
by Ravinder
04:04
created
includes/misc-functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
  *
1158 1158
  * @todo  Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828).
1159 1159
  *
1160
- * @return bool
1160
+ * @return false|null
1161 1161
  */
1162 1162
 function give_donation_metabox_menu() {
1163 1163
 
@@ -1540,7 +1540,7 @@  discard block
 block discarded – undo
1540 1540
  * @param int    $id
1541 1541
  * @param string $meta_key
1542 1542
  * @param mixed  $meta_value
1543
- * @param mixed  $prev_value
1543
+ * @param string  $prev_value
1544 1544
  *
1545 1545
  * @return mixed
1546 1546
  */
@@ -1747,7 +1747,7 @@  discard block
 block discarded – undo
1747 1747
  * @since 1.8.13
1748 1748
  *
1749 1749
  * @param array      $list      List of objects or arrays
1750
- * @param int|string $field     Field from the object to place instead of the entire object
1750
+ * @param string $field     Field from the object to place instead of the entire object
1751 1751
  * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
1752 1752
  *                              Default null.
1753 1753
  *
Please login to merge, or discard this patch.
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/payments/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
  *
706 706
  * @since 1.0
707 707
  *
708
- * @return int $earnings Earnings
708
+ * @return double $earnings Earnings
709 709
  */
710 710
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
711 711
 
@@ -993,7 +993,7 @@  discard block
 block discarded – undo
993 993
  *
994 994
  * @since 1.0
995 995
  *
996
- * @return array $user_info User Info Meta Values.
996
+ * @return string $user_info User Info Meta Values.
997 997
  */
998 998
 function give_get_payment_meta_user_info( $payment_id ) {
999 999
 	$payment = new Give_Payment( $payment_id );
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
  *
1011 1011
  * @since 1.0
1012 1012
  *
1013
- * @return int $form_id Form ID.
1013
+ * @return string $form_id Form ID.
1014 1014
  */
1015 1015
 function give_get_payment_form_id( $payment_id ) {
1016 1016
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
includes/admin/donors/donor-functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 /**
89 89
  * Connect and Reconnect Donor with User profile.
90 90
  *
91
- * @param object $donor      Donor Object.
91
+ * @param Give_Donor $donor      Donor Object.
92 92
  * @param array  $donor_data Donor Post Variables.
93 93
  * @param array  $address    Address Information.
94 94
  *
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  *
175 175
  * @since 1.8.17
176 176
  *
177
- * @return bool
177
+ * @return false|null
178 178
  */
179 179
 function give_delete_bulk_donors( $donor_id, $args ) {
180 180
 	$donor_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
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/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.