| @@ -1,37 +1,37 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * Importer Manager | |
| 5 | - * | |
| 6 | - * @since 1.1.0 | |
| 7 | - */ | |
| 8 | -class WeForms_Importer_Manager { | |
| 9 | - | |
| 10 | - public function __construct() { | |
| 11 | - $this->get_importers(); | |
| 12 | - } | |
| 13 | - | |
| 14 | - /** | |
| 15 | - * Fetch and instantiate all the importers | |
| 16 | - * | |
| 17 | - * @return array | |
| 18 | - */ | |
| 19 | - public function get_importers() { | |
| 20 | - require_once WEFORMS_INCLUDES . '/importer/class-importer-abstract.php'; | |
| 21 | - require_once WEFORMS_INCLUDES . '/importer/class-importer-cf7.php'; | |
| 22 | - require_once WEFORMS_INCLUDES . '/importer/class-importer-gf.php'; | |
| 23 | - require_once WEFORMS_INCLUDES . '/importer/class-importer-wpforms.php'; | |
| 24 | - require_once WEFORMS_INCLUDES . '/importer/class-importer-ninja-forms.php'; | |
| 25 | - require_once WEFORMS_INCLUDES . '/importer/class-importer-caldera-forms.php'; | |
| 26 | - | |
| 27 | - $importers = [ | |
| 28 | - 'cf7' => new WeForms_Importer_CF7(), | |
| 29 | - 'gravity' => new WeForms_Importer_GF(), | |
| 30 | - 'wpforms' => new WeForms_Importer_WPForms(), | |
| 31 | - 'ninjaforms' => new WeForms_Importer_Ninja_Forms(), | |
| 32 | - 'caldera' => new WeForms_Importer_Caldera_Forms(), | |
| 33 | - ]; | |
| 34 | - | |
| 35 | - return apply_filters( 'weforms_form_importers', $importers ); | |
| 36 | - } | |
| 37 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Importer Manager | |
| 5 | + * | |
| 6 | + * @since 1.1.0 | |
| 7 | + */ | |
| 8 | +class WeForms_Importer_Manager { | |
| 9 | + | |
| 10 | + function __construct() { | |
| 11 | + $this->get_importers(); | |
| 12 | + } | |
| 13 | + | |
| 14 | + /** | |
| 15 | + * Fetch and instantiate all the importers | |
| 16 | + * | |
| 17 | + * @return array | |
| 18 | + */ | |
| 19 | + public function get_importers() { | |
| 20 | + require_once WEFORMS_INCLUDES . '/importer/class-importer-abstract.php'; | |
| 21 | + require_once WEFORMS_INCLUDES . '/importer/class-importer-cf7.php'; | |
| 22 | + require_once WEFORMS_INCLUDES . '/importer/class-importer-gf.php'; | |
| 23 | + require_once WEFORMS_INCLUDES . '/importer/class-importer-wpforms.php'; | |
| 24 | + require_once WEFORMS_INCLUDES . '/importer/class-importer-ninja-forms.php'; | |
| 25 | + require_once WEFORMS_INCLUDES . '/importer/class-importer-caldera-forms.php'; | |
| 26 | + | |
| 27 | + $importers = array( | |
| 28 | + 'cf7' => new WeForms_Importer_CF7(), | |
| 29 | + 'gravity' => new WeForms_Importer_GF(), | |
| 30 | + 'wpforms' => new WeForms_Importer_WPForms(), | |
| 31 | + 'ninjaforms' => new WeForms_Importer_Ninja_Forms(), | |
| 32 | + 'caldera' => new WeForms_Importer_Caldera_Forms(), | |
| 33 | + ); | |
| 34 | + | |
| 35 | + return apply_filters( 'weforms_form_importers', $importers ); | |
| 36 | + } | |
| 37 | +} | |