Test Failed
Push — test/staging-license-endpoint ( 83a181 )
by Ravinder
05:30
created
includes/class-give-comment.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 	 * @param int        $comment_id
426 426
 	 * @param WP_Comment $comment
427 427
 	 *
428
-	 * @return mixed
428
+	 * @return string
429 429
 	 */
430 430
 	public function __get_comment_author( $author, $comment_id, $comment ) {
431 431
 		if ( in_array( $comment->comment_type, $this->comment_types ) ) {
@@ -448,6 +448,7 @@  discard block
 block discarded – undo
448 448
 	 * @access public
449 449
 	 *
450 450
 	 * @param array @comment_types
451
+	 * @param string[] $comment_types
451 452
 	 *
452 453
 	 * @return array
453 454
 	 */
Please login to merge, or discard this patch.
includes/payments/class-give-sequential-donation-number.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
 	 * @since
198 198
 	 * @access public
199 199
 	 *
200
-	 * @param $serial_number
200
+	 * @param integer $serial_number
201 201
 	 *
202 202
 	 * @return string
203 203
 	 */
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -569,7 +569,7 @@
 block discarded – undo
569 569
  *
570 570
  * @since 1.0
571 571
  *
572
- * @return int $earnings Earnings
572
+ * @return double $earnings Earnings
573 573
  */
574 574
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
575 575
 	// This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead.
Please login to merge, or discard this patch.
includes/admin/donors/donor-actions.php 1 patch
Doc Comments   +3 added lines, -3 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
 
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
  *
432 432
  * @since  1.7
433 433
  *
434
- * @return bool|null
434
+ * @return false|null
435 435
  */
436 436
 function give_remove_donor_email() {
437 437
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
  *
476 476
  * @since  1.7
477 477
  *
478
- * @return bool|null
478
+ * @return false|null
479 479
  */
480 480
 function give_set_donor_primary_email() {
481 481
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
Please login to merge, or discard this patch.
includes/admin/tools/data/class-give-tools-delete-import-donors.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@
 block discarded – undo
290 290
 	 *
291 291
 	 * @since 1.8.12
292 292
 	 *
293
-	 * @return int
293
+	 * @return double
294 294
 	 */
295 295
 	public function get_percentage_complete() {
296 296
 		return ceil( ( 100 * $this->step_completed ) / $this->total_step );
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
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 	 *
406 406
 	 * @param  int|bool $payment_id A given payment.
407 407
 	 *
408
-	 * @return mixed void|false
408
+	 * @return false|null void|false
409 409
 	 */
410 410
 	public function __construct( $payment_id = false ) {
411 411
 
@@ -1174,7 +1174,7 @@  discard block
 block discarded – undo
1174 1174
 	 *
1175 1175
 	 * @param  string|bool $note The note to add.
1176 1176
 	 *
1177
-	 * @return bool           If the note was specified or not
1177
+	 * @return false|null           If the note was specified or not
1178 1178
 	 */
1179 1179
 	public function add_note( $note = false ) {
1180 1180
 		// Bail if no note specified.
Please login to merge, or discard this patch.
includes/process-donation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * @throws ReflectionException Exception Handling.
26 26
  *
27
- * @return mixed
27
+ * @return false|null
28 28
  */
29 29
 function give_process_donation_form() {
30 30
 
@@ -1328,7 +1328,7 @@  discard block
 block discarded – undo
1328 1328
  *
1329 1329
  * @param array $valid_data List of Valid Data.
1330 1330
  *
1331
- * @return bool
1331
+ * @return boolean|null
1332 1332
  */
1333 1333
 function give_validate_donation_amount( $valid_data ) {
1334 1334
 
Please login to merge, or discard this patch.
includes/admin/tools/data/class-give-tools-delete-donations.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 	/**
67 67
 	 * Constructor.
68 68
 	 *
69
-	 * @param number $_step Step ID of the currenct batch.
69
+	 * @param integer $_step Step ID of the currenct batch.
70 70
 	 */
71 71
 	public function __construct( $_step = 1 ) {
72 72
 		parent::__construct( $_step );
Please login to merge, or discard this patch.
includes/api/class-give-api-v2.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * @param WP_REST_Request $request
154 154
 	 *
155 155
 	 * @access public
156
-	 * @return array|mixed|object
156
+	 * @return string|null
157 157
 	 */
158 158
 	public function get_donation_grid( $request ) {
159 159
 		$parameters = $request->get_params();
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * @param WP_REST_Request $request
168 168
 	 *
169 169
 	 * @access public
170
-	 * @return array|mixed|object
170
+	 * @return string|boolean
171 171
 	 */
172 172
 	public function get_donor_wall( $request ) {
173 173
 		$parameters = $request->get_params();
Please login to merge, or discard this patch.