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/factories/FrmEntryFactory.php +4 -6 6.4 → trunk View file →
@@ -37,23 +37,21 @@
37 37 return new $formatter_class( $atts );
38 38 }
39 39
40 40 /**
41 - * Create an intsance of the FrmEntryShortcodeFormatter class
41 + * Create an instance of the FrmEntryShortcodeFormatter class
42 42 *
43 43 * @since 2.04
44 44 *
45 45 * @param int|string $form_id
46 - * @param array $atts
46 + * @param array $atts
47 47 *
48 48 * @return FrmEntryShortcodeFormatter|FrmProEntryShortcodeFormatter
49 49 */
50 50 public static function entry_shortcode_formatter_instance( $form_id, $atts ) {
51 51 if ( FrmAppHelper::pro_is_installed() ) {
52 - $shortcode_formatter = new FrmProEntryShortcodeFormatter( $form_id, $atts );
53 - } else {
54 - $shortcode_formatter = new FrmEntryShortcodeFormatter( $form_id, $atts );
52 + return new FrmProEntryShortcodeFormatter( $form_id, $atts );
55 53 }
56 54
57 - return $shortcode_formatter;
55 + return new FrmEntryShortcodeFormatter( $form_id, $atts );
58 56 }
59 57 }