Completed
Push — release/1.8.3 ( 316c10...54ed50 )
by Ravinder
20:14
created
includes/admin/give-metabox-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1283,7 +1283,7 @@
 block discarded – undo
1283 1283
  *
1284 1284
  * @param $field
1285 1285
  *
1286
- * @return string
1286
+ * @return integer
1287 1287
  */
1288 1288
 function _give_set_field_give_id_default_value( $field ) {
1289 1289
 	return 0;
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-cmb2-backward-compatibility.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 		 *
86 86
 		 * @since  1.8
87 87
 		 *
88
-		 * @param  $setting_tab
88
+		 * @param  string $setting_tab
89 89
 		 *
90 90
 		 * @return string
91 91
 		 */
Please login to merge, or discard this patch.
includes/admin/shortcodes/class-shortcode-button.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 	/**
114 114
 	 * Adds the "Donation Form" button above the TinyMCE Editor on add/edit screens.
115 115
 	 *
116
-	 * @return string|bool
116
+	 * @return false|null
117 117
 	 *
118 118
 	 * @since 1.0
119 119
 	 */
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
 
@@ -1466,7 +1466,7 @@  discard block
 block discarded – undo
1466 1466
  *
1467 1467
  * @param  int $form_id The form ID.
1468 1468
  *
1469
- * @return bool
1469
+ * @return false|null
1470 1470
  */
1471 1471
 function give_terms_agreement( $form_id ) {
1472 1472
 	$form_option = get_post_meta( $form_id, '_give_terms_option', true );
@@ -1675,7 +1675,7 @@  discard block
 block discarded – undo
1675 1675
  * @param  int   $form_id The form ID.
1676 1676
  * @param  array $args    An array of form arguments.
1677 1677
  *
1678
- * @return mixed
1678
+ * @return boolean
1679 1679
  */
1680 1680
 function give_show_goal_progress( $form_id, $args ) {
1681 1681
 
@@ -1694,7 +1694,7 @@  discard block
 block discarded – undo
1694 1694
  * Get form content position.
1695 1695
  *
1696 1696
  * @since  1.8
1697
- * @param  $form_id
1697
+ * @param  integer $form_id
1698 1698
  * @param  $args
1699 1699
  * @return mixed|string
1700 1700
  */
@@ -1729,7 +1729,7 @@  discard block
 block discarded – undo
1729 1729
  * @param  int   $form_id The form ID.
1730 1730
  * @param  array $args    An array of form arguments.
1731 1731
  *
1732
- * @return void|bool
1732
+ * @return false|null
1733 1733
  */
1734 1734
 function give_form_content( $form_id, $args ) {
1735 1735
 
Please login to merge, or discard this patch.
includes/admin/customers/customer-actions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
  * and redirect back to the donor interface for feedback
528 528
  *
529 529
  * @since  1.7
530
- * @return bool|null
530
+ * @return false|null
531 531
  */
532 532
 function give_remove_donor_email() {
533 533
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
  * and redirect back to the donor interface for feedback
569 569
  *
570 570
  * @since  1.7
571
- * @return bool|null
571
+ * @return false|null
572 572
  */
573 573
 function give_set_donor_primary_email() {
574 574
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
Please login to merge, or discard this patch.
includes/admin/reporting/class-api-requests-logs-list-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 string|bool 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/admin/reporting/class-sales-logs-list-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 string|bool 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/api/class-give-api.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -664,7 +664,7 @@
 block discarded – undo
664 664
 	 *
665 665
 	 * @param array $args Arguments to override defaults
666 666
 	 *
667
-	 * @return array $dates
667
+	 * @return integer|null $dates
668 668
 	 */
669 669
 	public function get_dates( $args = array() ) {
670 670
 		$dates = array();
Please login to merge, or discard this patch.
includes/payments/class-payment-stats.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @param  $end_date   string|bool  The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month`
37 37
 	 * @param  $status     string|array The sale status(es) to count. Only valid when retrieving global stats
38 38
 	 *
39
-	 * @return float|int                Total amount of donations based on the passed arguments.
39
+	 * @return string                Total amount of donations based on the passed arguments.
40 40
 	 */
41 41
 	public function get_sales( $form_id = 0, $start_date = false, $end_date = false, $status = 'publish' ) {
42 42
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 * @param  $end_date    string|bool The end date for which we'd like to filter the donations stats. If false, method will use the default end date of `this_month`.
100 100
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'.
101 101
 	 *
102
-	 * @return float|int                Total amount of donations based on the passed arguments.
102
+	 * @return string                Total amount of donations based on the passed arguments.
103 103
 	 */
104 104
 	public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
105 105
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 	 * @param  $end_date    string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month`
220 220
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'
221 221
 	 *
222
-	 * @return float|int                Total amount of donations based on the passed arguments.
222
+	 * @return string                Total amount of donations based on the passed arguments.
223 223
 	 */
224 224
 	public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
225 225
 
Please login to merge, or discard this patch.