PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← All changes | includes/donors/class-give-donor-stats.php +8 -6 2.3.0 → 4.17.0 View file →
@@ -5,9 +5,9 @@
5 5 * Note: Currently wr are working on this API. This is internal use only
6 6 *
7 7 * @package Give
8 8 * @subpackage Classes/Donor/Stats
9 - * @copyright Copyright (c) 2018, WordImpress
9 + * @copyright Copyright (c) 2018, GiveWP
10 10 * @license https://opensource.org/licenses/gpl-license GNU Public License
11 11 * @since 2.2.0
12 12 */
13 13 class Give_Donor_Stats {
@@ -17,9 +17,9 @@
17 17 * @since 2.2.0
18 18 * @access private
19 19 * @var
20 20 */
21 - static private $instance;
21 + private static $instance;
22 22
23 23 /**
24 24 * Singleton pattern.
25 25 *
@@ -47,9 +47,8 @@
47 47
48 48 /**
49 49 * Get total donated amount
50 50 *
51 - *
52 51 * @since 2.2.0
53 52 * @access public
54 53 *
55 54 * @param array $args
@@ -54,9 +53,8 @@
54 53 *
55 54 * @param array $args
56 55 *
57 56 * @return string
58 - *
59 57 */
60 58 public static function donated( $args = array() ) {
61 59 global $wpdb;
62 60 $donation_id_col = Give()->payment_meta->get_meta_type() . '_id';
@@ -102,12 +100,16 @@
102 100 'give_donation_amount',
103 101 give_format_amount( $donation['total'], array( 'currency' => $currency_code ) ),
104 102 $donation['total'],
105 103 $donation['id'],
106 - array( 'type' => 'stats', 'currency' => false, 'amount' => false )
104 + array(
105 + 'type' => 'stats',
106 + 'currency' => false,
107 + 'amount' => false,
108 + )
107 109 );
108 110
109 - $donated_amount += (float) give_maybe_sanitize_amount( $formatted_amount, array( 'currency' => $currency_code ) );
111 + $donated_amount += (float) give_maybe_sanitize_amount( $formatted_amount, array( 'currency' => $currency_code ) );
110 112 }
111 113 }
112 114
113 115 return $donated_amount;