PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.21
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.21
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmEmailStats.php +2 -8 6.296.21 View file →
@@ -2,9 +2,8 @@
2 2 /**
3 3 * Stats email class
4 4 *
5 5 * @since 6.7
6 - *
7 6 * @package Formidable
8 7 */
9 8
10 9 if ( ! defined( 'ABSPATH' ) ) {
@@ -91,9 +90,10 @@
91 90 return ob_get_clean();
92 91 }
93 92
94 93 protected function get_content_args() {
95 - $args = parent::get_content_args();
94 + $args = parent::get_content_args();
95 +
96 96 $entries_count = FrmEmailSummaryHelper::get_entries_count( $this->from_date, $this->to_date );
97 97 $entries_stat = array(
98 98 'entries' => array(
99 99 'label' => __( 'Entries created', 'formidable' ),
@@ -124,10 +124,8 @@
124 124 /**
125 125 * Adds entries comparison data.
126 126 *
127 127 * @param array $stats Statistics section data.
128 - *
129 - * @return void
130 128 */
131 129 protected function add_entries_comparison_data( &$stats ) {
132 130 if ( ! $this->has_comparison ) {
133 131 return;
@@ -140,10 +138,8 @@
140 138 /**
141 139 * Adds payments count and total data.
142 140 *
143 141 * @param array $stats Statistics section data.
144 - *
145 - * @return void
146 142 */
147 143 protected function add_payments_data( &$stats ) {
148 144 $payment_data = FrmEmailSummaryHelper::get_payments_data( $this->from_date, $this->to_date );
149 145 $stats['payments_count'] = array(
@@ -202,9 +198,8 @@
202 198 * Gets formatted price.
203 199 *
204 200 * @param float $amount Amount.
205 201 * @param array|string $currency Currency string value or array.
206 - *
207 202 * @return string
208 203 */
209 204 protected function get_formatted_price( $amount, $currency ) {
210 205 if ( ! is_array( $currency ) ) {
@@ -218,9 +213,8 @@
218 213 * Gets comparison diff between 2 values.
219 214 *
220 215 * @param float $current Current value.
221 216 * @param float $prev Previous value.
222 - *
223 217 * @return float
224 218 */
225 219 public function get_compare_diff( $current, $prev ) {
226 220 if ( ! $current && ! $prev ) {