Completed
Push — issues/1132 ( b11cf8...b0ddd9 )
by Ravinder
19:03
created
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.
includes/payments/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
  * @param  int $year      Year number. Default is null.
675 675
  * @param  int $hour      Hour number. Default is null.
676 676
  *
677
- * @return int $earnings  Earnings
677
+ * @return double $earnings  Earnings
678 678
  */
679 679
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
680 680
 
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
  * @param string $meta_key   The meta key to pull.
933 933
  * @param bool   $single     Pull single meta entry or as an object.
934 934
  *
935
- * @return mixed $meta Payment Meta.
935
+ * @return string $meta Payment Meta.
936 936
  */
937 937
 function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) {
938 938
 	$payment = new Give_Payment( $payment_id );
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
  *
981 981
  * @param int $payment_id Payment ID.
982 982
  *
983
- * @return int $form_id Form ID.
983
+ * @return string $form_id Form ID.
984 984
  */
985 985
 function give_get_payment_form_id( $payment_id ) {
986 986
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.