Test Failed
Push — issues/1944 ( 986f5c...2398f6 )
by Ravinder
04:43
created
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/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/class-give-donor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -918,7 +918,7 @@
 block discarded – undo
918 918
 	 * @access public
919 919
 	 *
920 920
 	 * @param  string $meta_key Metadata name. Default is empty.
921
-	 * @param  mixed $meta_value Optional. Metadata value. Default is empty.
921
+	 * @param  string $meta_value Optional. Metadata value. Default is empty.
922 922
 	 *
923 923
 	 * @return bool               False for failure. True for success.
924 924
 	 */
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.
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
  * @since 1.0
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
 
@@ -1538,7 +1538,7 @@  discard block
 block discarded – undo
1538 1538
  *
1539 1539
  * @param  int $form_id The form ID.
1540 1540
  *
1541
- * @return bool
1541
+ * @return false|null
1542 1542
  */
1543 1543
 function give_terms_agreement( $form_id ) {
1544 1544
 	$form_option = give_get_meta( $form_id, '_give_terms_option', true );
@@ -1716,7 +1716,7 @@  discard block
 block discarded – undo
1716 1716
  * @param  int   $form_id The form ID.
1717 1717
  * @param  array $args    An array of form arguments.
1718 1718
  *
1719
- * @return mixed
1719
+ * @return boolean
1720 1720
  */
1721 1721
 function give_show_goal_progress( $form_id, $args ) {
1722 1722
 
@@ -1736,7 +1736,7 @@  discard block
 block discarded – undo
1736 1736
  *
1737 1737
  * @since  1.8
1738 1738
  *
1739
- * @param  $form_id
1739
+ * @param  integer $form_id
1740 1740
  * @param  $args
1741 1741
  *
1742 1742
  * @return mixed|string
@@ -1777,7 +1777,7 @@  discard block
 block discarded – undo
1777 1777
  * @param  int   $form_id The form ID.
1778 1778
  * @param  array $args    An array of form arguments.
1779 1779
  *
1780
- * @return void|bool
1780
+ * @return false|null
1781 1781
  */
1782 1782
 function give_form_content( $form_id, $args ) {
1783 1783
 
Please login to merge, or discard this patch.
includes/admin/admin-filters.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
  *
65 65
  * @param   string $value
66 66
  *
67
- * @return  mixed
67
+ * @return  string
68 68
  */
69 69
 function __give_validate_decimal_separator_setting_field( $value ) {
70 70
 	$thousand_separator = give_clean( $_POST['thousands_separator'] );
Please login to merge, or discard this patch.
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.