| @@ -3,16 +3,19 @@ | ||
| 3 | 3 | namespace BitCode\BitForm\API\BitForm_Public; |
| 4 | 4 | |
| 5 | 5 | use BitCode\BitForm\Core\Database\ApiModel; |
| 6 | 6 | |
| 7 | -class BitForm_Public { | |
| 8 | - public static function getForms() { | |
| 7 | +class BitForm_Public | |
| 8 | +{ | |
| 9 | + public static function getForms() | |
| 10 | + { | |
| 9 | 11 | $db = new ApiModel(); |
| 10 | 12 | $forms = $db->getForm(); |
| 11 | 13 | return $forms; |
| 12 | 14 | } |
| 13 | 15 | |
| 14 | - public static function getFields($formId) { | |
| 16 | + public static function getFields($formId) | |
| 17 | + { | |
| 15 | 18 | $db = new ApiModel(); |
| 16 | 19 | $formData = $db->getField($formId); |
| 17 | 20 | if (!empty($formData)) { |
| 18 | 21 | $unset_types = ['paypal', 'razorpay', 'stripe', 'recaptcha']; |