PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2
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/FrmEntryShortcodeFormatter.php +8 -7 6.25.16.2 View file →
@@ -44,12 +44,12 @@
44 44 */
45 45 protected $format = 'text';
46 46
47 47 /**
48 - * @var FrmTableHTMLGenerator|null
48 + * @var FrmTableHTMLGenerator
49 49 * @since 2.04
50 50 */
51 - protected $table_generator;
51 + protected $table_generator = null;
52 52
53 53 /**
54 54 * @var array
55 55 * @since 2.04
@@ -59,9 +59,9 @@
59 59 /**
60 60 * FrmEntryShortcodeFormatter constructor
61 61 *
62 62 * @param int|string $form_id
63 - * @param array $atts
63 + * @param array $atts
64 64 */
65 65 public function __construct( $form_id, $atts ) {
66 66 if ( ! $form_id ) {
67 67 return;
@@ -86,8 +86,9 @@
86 86 * Initialize the form_id property
87 87 *
88 88 * @since 2.04
89 89 *
90 + * @param $form_id
90 91 * @param int|string $form_id
91 92 *
92 93 * @return void
93 94 */
@@ -158,9 +159,9 @@
158 159 if ( ! $this->form_id || empty( $this->fields ) ) {
159 160 return '';
160 161 }
161 162
162 - if ( $this->format === 'array' ) {
163 + if ( $this->format == 'array' ) {
163 164 $content = $this->get_array();
164 165 } elseif ( $this->is_plain_text_format() ) {
165 166 $content = $this->get_plain_text();
166 167 } else {
@@ -203,9 +204,9 @@
203 204 *
204 205 * @return string
205 206 */
206 207 protected function get_table() {
207 - $content = $this->table_generator->generate_table_header();
208 + $content = $this->table_generator->generate_table_header();
208 209 $content .= $this->generate_content_for_all_fields();
209 210 $content .= $this->table_generator->generate_table_footer();
210 211
211 212 return $content;
@@ -252,9 +253,9 @@
252 253 *
253 254 * @since 2.04
254 255 *
255 256 * @param stdClass $field
256 - * @param mixed $value
257 + * @param mixed $value
257 258 *
258 259 * @return string
259 260 */
260 261 protected function generate_two_cell_shortcode_row( $field, $value = null ) {
@@ -303,9 +304,9 @@
303 304 *
304 305 * @since 2.04
305 306 *
306 307 * @param stdClass $field
307 - * @param string $value
308 + * @param string $value
308 309 *
309 310 * @return void
310 311 */
311 312 protected function add_single_field_array( $field, $value ) {