Test Failed
Push — release/2.0 ( 9e8647...e4a555 )
by Ravinder
08:20 queued 04:10
created
includes/import-functions.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -666,6 +666,7 @@
 block discarded – undo
666 666
  * Check if Import donation is duplicate
667 667
  *
668 668
  * @since 1.8.13
669
+ * @param Give_Donate_Form $form
669 670
  */
670 671
 function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) {
671 672
 	$return = false;
Please login to merge, or discard this patch.
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/donor-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
  * Connect and Reconnect Donor with User profile.
90 90
  * @todo $address is unnecessary param because we are store address to user.
91 91
  *
92
- * @param object $donor      Donor Object.
92
+ * @param Give_Donor $donor      Donor Object.
93 93
  * @param array  $donor_data Donor Post Variables.
94 94
  * @param array  $address    Address Information.
95 95
  *
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/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/actions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
  * @access public
342 342
  * @since  2.0
343 343
  *
344
- * @return bool
344
+ * @return false|null
345 345
  */
346 346
 function give_update_donor_name_on_user_update( $user_id = 0 ) {
347 347
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
  * @param  int          $user_id       User ID.
382 382
  * @param  WP_User|bool $old_user_data User data.
383 383
  *
384
- * @return bool
384
+ * @return false|null
385 385
  */
386 386
 function give_update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) {
387 387
 
Please login to merge, or discard this patch.