PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 +8 -2 6.25 → trunk View file →
@@ -2,8 +2,9 @@
2 2 /**
3 3 * Stats email class
4 4 *
5 5 * @since 6.7
6 + *
6 7 * @package Formidable
7 8 */
8 9
9 10 if ( ! defined( 'ABSPATH' ) ) {
@@ -90,10 +91,9 @@
90 91 return ob_get_clean();
91 92 }
92 93
93 94 protected function get_content_args() {
94 - $args = parent::get_content_args();
95 -
95 + $args = parent::get_content_args();
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,8 +124,10 @@
124 124 /**
125 125 * Adds entries comparison data.
126 126 *
127 127 * @param array $stats Statistics section data.
128 + *
129 + * @return void
128 130 */
129 131 protected function add_entries_comparison_data( &$stats ) {
130 132 if ( ! $this->has_comparison ) {
131 133 return;
@@ -138,8 +140,10 @@
138 140 /**
139 141 * Adds payments count and total data.
140 142 *
141 143 * @param array $stats Statistics section data.
144 + *
145 + * @return void
142 146 */
143 147 protected function add_payments_data( &$stats ) {
144 148 $payment_data = FrmEmailSummaryHelper::get_payments_data( $this->from_date, $this->to_date );
145 149 $stats['payments_count'] = array(
@@ -198,8 +202,9 @@
198 202 * Gets formatted price.
199 203 *
200 204 * @param float $amount Amount.
201 205 * @param array|string $currency Currency string value or array.
206 + *
202 207 * @return string
203 208 */
204 209 protected function get_formatted_price( $amount, $currency ) {
205 210 if ( ! is_array( $currency ) ) {
@@ -213,8 +218,9 @@
213 218 * Gets comparison diff between 2 values.
214 219 *
215 220 * @param float $current Current value.
216 221 * @param float $prev Previous value.
222 + *
217 223 * @return float
218 224 */
219 225 public function get_compare_diff( $current, $prev ) {
220 226 if ( ! $current && ! $prev ) {