| @@ -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 | } |