Test Failed
Push — hotfix/give_currency_filter ( 2ab3ef...4b1b17 )
by Ravinder
05:13
created
includes/admin/reports/class-donor-reports-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 	 *
158 158
 	 * @access public
159 159
 	 * @since  1.0
160
-	 * @return mixed string If search is present, false otherwise
160
+	 * @return string|false string If search is present, false otherwise
161 161
 	 */
162 162
 	public function get_search() {
163 163
 		return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false;
Please login to merge, or discard this patch.
includes/formatting.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@
 block discarded – undo
283 283
  * @since 1.0
284 284
  *
285 285
  * @param int|float|string $amount   Formatted or sanitized price
286
- * @param int|bool         $dp       number of decimals
286
+ * @param boolean         $dp       number of decimals
287 287
  * @param bool             $sanitize Whether or not sanitize number
288 288
  *
289 289
  * @return string $amount Newly formatted amount or Price Not Available
Please login to merge, or discard this patch.
give.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
  * Example: <?php $give = Give(); ?>
522 522
  *
523 523
  * @since 1.0
524
- * @return object|Give
524
+ * @return Give
525 525
  */
526 526
 function Give() {
527 527
 	return Give::instance();
Please login to merge, or discard this patch.
includes/admin/tools/data/class-give-tools-delete-test-donors.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * Return the calculated completion percentage.
217 217
 	 *
218 218
 	 * @since 1.8.12
219
-	 * @return int
219
+	 * @return double
220 220
 	 */
221 221
 	public function get_percentage_complete() {
222 222
 		return ceil( ( 100 * $this->step_completed ) / $this->total_step );
@@ -353,6 +353,9 @@  discard block
 block discarded – undo
353 353
 		return true;
354 354
 	}
355 355
 
356
+	/**
357
+	 * @param integer $page
358
+	 */
356 359
 	public function get_delete_ids( $donation_ids, $page ) {
357 360
 		$index            = $page --;
358 361
 		$count            = count( $donation_ids );
Please login to merge, or discard this patch.
includes/forms/template.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @param  array $args An array of form arguments.
23 23
  *
24
- * @return string Donation form.
24
+ * @return false|null Donation form.
25 25
  */
26 26
 function give_get_donation_form( $args = array() ) {
27 27
 
@@ -1488,7 +1488,7 @@  discard block
 block discarded – undo
1488 1488
  *
1489 1489
  * @param  int $form_id The form ID.
1490 1490
  *
1491
- * @return bool
1491
+ * @return false|null
1492 1492
  */
1493 1493
 function give_terms_agreement( $form_id ) {
1494 1494
 	$form_option = give_get_meta( $form_id, '_give_terms_option', true );
@@ -1666,7 +1666,7 @@  discard block
 block discarded – undo
1666 1666
  * @param  int $form_id The form ID.
1667 1667
  * @param  array $args An array of form arguments.
1668 1668
  *
1669
- * @return mixed
1669
+ * @return boolean
1670 1670
  */
1671 1671
 function give_show_goal_progress( $form_id, $args ) {
1672 1672
 
@@ -1686,7 +1686,7 @@  discard block
 block discarded – undo
1686 1686
  *
1687 1687
  * @since  1.8
1688 1688
  *
1689
- * @param  $form_id
1689
+ * @param  integer $form_id
1690 1690
  * @param  $args
1691 1691
  *
1692 1692
  * @return mixed|string
@@ -1727,7 +1727,7 @@  discard block
 block discarded – undo
1727 1727
  * @param  int $form_id The form ID.
1728 1728
  * @param  array $args An array of form arguments.
1729 1729
  *
1730
- * @return void|bool
1730
+ * @return false|null
1731 1731
  */
1732 1732
 function give_form_content( $form_id, $args ) {
1733 1733
 
Please login to merge, or discard this patch.
includes/user-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -675,7 +675,7 @@
 block discarded – undo
675 675
 /**
676 676
  * This function will check whether the donor email is primary or additional.
677 677
  *
678
- * @param $email Donor Email.
678
+ * @param string $email Donor Email.
679 679
  *
680 680
  * @since 1.8.13
681 681
  *
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
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 	 *
370 370
 	 * @param  int|bool $payment_id A given payment
371 371
 	 *
372
-	 * @return mixed void|false
372
+	 * @return false|null void|false
373 373
 	 */
374 374
 	public function __construct( $payment_id = false ) {
375 375
 
@@ -1088,7 +1088,7 @@  discard block
 block discarded – undo
1088 1088
 	 *
1089 1089
 	 * @param  string $note The note to add
1090 1090
 	 *
1091
-	 * @return bool           If the note was specified or not
1091
+	 * @return false|null           If the note was specified or not
1092 1092
 	 */
1093 1093
 	public function add_note( $note = false ) {
1094 1094
 		// Bail if no note specified.
Please login to merge, or discard this patch.
includes/admin/tools/data/class-give-tools-delete-import-donors.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * Return the calculated completion percentage.
217 217
 	 *
218 218
 	 * @since 1.8.12
219
-	 * @return int
219
+	 * @return double
220 220
 	 */
221 221
 	public function get_percentage_complete() {
222 222
 		return ceil( ( 100 * $this->step_completed ) / $this->total_step );
@@ -353,6 +353,9 @@  discard block
 block discarded – undo
353 353
 		return true;
354 354
 	}
355 355
 
356
+	/**
357
+	 * @param integer $page
358
+	 */
356 359
 	public function get_delete_ids( $donation_ids, $page ) {
357 360
 		$index            = $page --;
358 361
 		$count            = count( $donation_ids );
Please login to merge, or discard this patch.
includes/admin/tools/import/class-give-import-donations.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 
453 453
 		/**
454 454
 		 * @param $option_value
455
-		 * @param $value
455
+		 * @param boolean $value
456 456
 		 *
457 457
 		 * @return string
458 458
 		 */
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 		 *
530 530
 		 * @since 1.8.14
531 531
 		 *
532
-		 * @param $file_id
532
+		 * @param integer $file_id
533 533
 		 *
534 534
 		 * @return bool|int
535 535
 		 */
Please login to merge, or discard this patch.