Completed
Push — issues/1796 ( b53179...52862a )
by Ravinder
41:58 queued 22:00
created
includes/actions.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,6 @@
 block discarded – undo
217 217
 /**
218 218
  * Set Donation Amount for Multi Level Donation Forms
219 219
  *
220
- * @param int    $form_id
221 220
  * @param object $form
222 221
  *
223 222
  * @since 1.8.9
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
  * @param  int $year Year number. Default is null.
685 685
  * @param  int $hour Hour number. Default is null.
686 686
  *
687
- * @return int $earnings  Earnings
687
+ * @return double $earnings  Earnings
688 688
  */
689 689
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
690 690
 
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
  * @param string $meta_key The meta key to pull.
943 943
  * @param bool $single Pull single meta entry or as an object.
944 944
  *
945
- * @return mixed $meta Payment Meta.
945
+ * @return string $meta Payment Meta.
946 946
  */
947 947
 function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) {
948 948
 	$payment = new Give_Payment( $payment_id );
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
  *
991 991
  * @param int $payment_id Payment ID.
992 992
  *
993
- * @return int $form_id Form ID.
993
+ * @return string $form_id Form ID.
994 994
  */
995 995
 function give_get_payment_form_id( $payment_id ) {
996 996
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
includes/class-notices.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@
 block discarded – undo
435 435
 	 * @since  1.8.9
436 436
 	 * @access public
437 437
 	 *
438
-	 * @param $errors
438
+	 * @param string $errors
439 439
 	 */
440 440
 	static function print_frontend_errors( $errors ) {
441 441
 		if ( ! $errors ) {
Please login to merge, or discard this patch.
includes/admin/tools/data/class-give-tools-recount-form-stats.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	 * @since 1.5
51 51
 	 * @global object $wpdb Used to query the database using the WordPress
52 52
 	 *   Database API
53
-	 * @return array $data The data for the CSV file
53
+	 * @return boolean $data The data for the CSV file
54 54
 	 */
55 55
 	public function get_data() {
56 56
 		global $wpdb;
Please login to merge, or discard this patch.
includes/class-give-cache.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 *
96 96
 	 * @param  string $cache_key
97 97
 	 * @param  bool   $custom_key
98
-	 * @param  mixed  $query_args
98
+	 * @param  string  $query_args
99 99
 	 *
100 100
 	 * @return mixed
101 101
 	 */
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	 *
211 211
 	 * @param bool $force If set to true then all cached values will be delete instead of only expired
212 212
 	 *
213
-	 * @return bool
213
+	 * @return false|null
214 214
 	 */
215 215
 	public static function delete_all_expired( $force = false ) {
216 216
 		global $wpdb;
Please login to merge, or discard this patch.
includes/class-give-logging.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -523,7 +523,7 @@
 block discarded – undo
523 523
 	 * @since  1.7
524 524
 	 * @access public
525 525
 	 *
526
-	 * @return bool
526
+	 * @return false|null
527 527
 	 */
528 528
 	public function delete_cache() {
529 529
 		// Add log related keys to delete.
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
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 * @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`.
84 84
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'.
85 85
 	 *
86
-	 * @return float|int                Total amount of donations based on the passed arguments.
86
+	 * @return string                Total amount of donations based on the passed arguments.
87 87
 	 */
88 88
 	public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
89 89
 		$this->setup_dates( $start_date, $end_date );
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 * @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`
169 169
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'
170 170
 	 *
171
-	 * @return float|int                Total amount of donations based on the passed arguments.
171
+	 * @return string                Total amount of donations based on the passed arguments.
172 172
 	 */
173 173
 	public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
174 174
 
Please login to merge, or discard this patch.